On Mon, 22 Apr 2002, "Tom Buskey" <[EMAIL PROTECTED]> wrote: > > As I said in not so many words, modern shells have it built in. I don't > consider Bourne a modern shell.
I believe Jerry is saying some of the newer implementations of /bin/sh have [ as a builtin. For example, [ has been a builtin on Solaris forever. This improves performance of scripts, e.g. a big loop with lots of if tests. > > Speaking of builtin commands vs. Unix commands. > > While setting the PATH environment variable in a script is a good idea, > > specifying the full path to a standard command may be a better way. The > > user may have aliased the commands: > > alias rm='rm -i' > > So, in your script (or makefile), setting a variable for the command will > > bypass any aliases: > > RM=/bin/rm > > Or RM=\rm so that aliasing is negated. I don't alias rm and my root > accounts don't either. I don't believe user's aliases are active at all in a general script. The ~/.bashrc ~/.profile, etc are not sourced for non-interactive shells. Only in an interactive shell will the these aliases be available. Karl ***************************************************************** To unsubscribe from this list, send mail to [EMAIL PROTECTED] with the text 'unsubscribe gnhlug' in the message body. *****************************************************************
