In sh, is '[' a portable synonym for 'test'?
Ed Reeder
oer at isosvax.UUCP
Tue Nov 5 04:30:00 AEST 1985
Another reason '[' is used instead of test is it prevents problems
when the user has a file named 'test' in his current directory AND
his search path searches his current directory before /bin (for
systems that don't have test built in to the shell).
While everyone should reset PATH to avoid the problem, we don't
(as evidenced by net.sources).
Ed Reeder
Intel Corporation
Phoenix
More information about the Comp.unix.wizards
mailing list