◐ Shell
clean mode source ↗

basename: Handle non-unicode parameters by drinkcat · Pull Request #8375 · uutils/coreutils

test_basename: Fix test_invalid_utf8_args

The test was not really testing for the right thing. If a non-unicode
string is passed, the basename should be printed as-is.

basename: Fix basename function, print raw byte slice.

basename: Take in parameters as OSString

This will allow us to handle non-Unicode strings correctly.

The logic needs to be updated, next.