YAkshBug

John B. Milton jbm at uncle.UUCP
Fri Feb 2 12:17:15 AEST 1990


Well, bug or inconsistancy:

if [ -f * ]; then echo yes; fi

will print "yes" if there are one or more files when using /bin/sh, but
not with ksh. Ksh gives a syntax error.

if sh -c "test -f *"; then echo yes; fi

Does work.

John
-- 
John Bly Milton IV, jbm at uncle.UUCP, n8emr!uncle!jbm at osu-cis.cis.ohio-state.edu
(614) h:252-8544, w:469-1990; N8KSN, AMPR: 44.70.0.52; Don't FLAME, inform!



More information about the Unix-pc.general mailing list