posix me harder

Martin Pool mbp at samba.org
Thu Mar 14 17:37:20 EST 2002


People might find this entertaining and/or useful:

  http://www.gnu.org/manual/autoconf-2.52/html_chapter/autoconf_10.html

With the help of Jos Backus I just discovered the answer to

  http://lists.samba.org/pipermail/rsync-cvs/2002-January/001271.html

is that Sun's test(1) is breathtakingly broken when passed a dangling
symlink: 

$ ln -s /nowhere bad
$ ls -l bad
lrwxrwxrwx   1 josb     user            8 Mar 13 20:10 bad -> /nowhere
$ if test -L bad; then echo bad; fi
test: argument expected
$ if test -h bad; then echo bad; fi
bad
$

-- 
Martin 




More information about the rsync mailing list