Randy McMurchy wrote:
Matthew Burgess wrote these words on 08/14/05 14:07 CST:

However, I'm only going to invest time in this if someone can convince me of why we *need* to move 'test' and '[' to /bin.

They are both used in /etc/rc.d/init.d/functions?

That's a shell script (with the magic shebang line "#!/bin/sh"), so, according to POSIX, the shell builtin will be preferred over the binary version. This will obviously fail if the shell doesn't provide the utility as a shell built-in (and POSIX doesn't mandate any particular utility should be a built-in). Obviously 'bash' provides both 'test' and '[', 'ash' [0] and 'zsh' [1] do too. It appears as though 'tcsh' [2] doesn't, but how many alternative shells should we even care about?

Matt.

[0]http://www.cse.unsw.edu.au/~neilb/oss/ae/ae_20.html
[1]http://www.gsp.com/cgi-bin/man.cgi?section=1&topic=zshbuiltins
[2]http://www.nersc.gov/nusers/resources/software/os/shells/tcsh/Builtin_commands.html
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to