+------------------------------------------------------------------------------
| On 2011-11-23 13:43:10, Harry Putnam wrote:
| 
| Somehow I touched some rather peculiar file names in ~.  Experimenting
| with something I've now forgotten I guess.
| 
| Anyway I now have 3 zero length files with names -O, -c, -k.

Use '--' to denote the end of arguments.

  $ uname -a
  SunOS lab 5.10 Generic_142910-17 i86pc i386 i86pc
  $ touch -- -c
  $ ls -l
  total 1
  -rw-r--r--   1 bda      bda            0 Nov 23 15:25 -c
  $ rm -- -c
  $ ls -l
  total 0

Cheers.
-- 
bdha
cyberpunk is dead. long live cyberpunk.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to