Oh, you can also prefix such strange file names with "./" to work with
them, e.g.:

$ ls -la  
total 8
drwxr-xr-x  2 mbt mbt 4096 2009-04-16 00:37 ./
drwxr-xr-x 85 mbt mbt 4096 2009-04-16 00:37 ../
$ touch ./--
$ ls -la
total 8
-rw-r--r--  1 mbt mbt    0 2009-04-16 00:37 --
drwxr-xr-x  2 mbt mbt 4096 2009-04-16 00:37 ./
drwxr-xr-x 85 mbt mbt 4096 2009-04-16 00:37 ../
$ 

Still, don't do it.  This behavior is due to system architecture and
very strange things can happen if you use filenames like these.

-- 
What if exit a file/dir named "-*"
https://bugs.launchpad.net/bugs/362119
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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

Reply via email to