Thank you. Now, what 'dir' are you using? I am assuming coreutils' (but
it could also be an alias).

>From the coreutils info page for 'dir' we have:

10.2 `dir': Briefly list directory contents
===========================================

`dir' is equivalent to `ls -C -b'; that is, by default files are listed
in columns, sorted vertically, and special characters are represented
by backslash escape sequences.

The '-b' is the one affecting the output: it prints unprintable
characters as a C octal escape sequence. So  the '?' symbol after 'tytu'
-- which is not actually a question mark -- gets printed as '\305'. This
is a good way to find out what is this darned char that you cannot see,
but the output is not compatible with the shell -- in the shell, the
backslah escapes the *single* next char.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/727937

Title:
  mv command not renaming file with invalid encoding

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to