That is also correct. I had forgotten. But, my original point is that it is probably better to specify the full pathname of a command. X=$(/bin/ls) will generally result in identical results as: PATH=/bin:$(PATH) X=$(ls)
But, specifying the full pathname also forces the command to be executed even if some version of the shell internalizes it or if the script somehow sources ~/.bashrc directly or indirectly. On 22 Apr 2002 at 7:28, Karl J. Runge wrote: > 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. -- Jerry Feldman <[EMAIL PROTECTED]> Associate Director Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 ***************************************************************** To unsubscribe from this list, send mail to [EMAIL PROTECTED] with the text 'unsubscribe gnhlug' in the message body. *****************************************************************