On Thu, May 23, 2002 at 02:50:44PM -0700, Dave Carrigan wrote: > Shaul Karl <[EMAIL PROTECTED]> writes: > > $ MYVAR=testing > > $ printf "$MYVAR\n" > > testing > > $ > > > > It looks like bash mark variables and function which are modified or > > created for export to the environment of subsequent commands. > > No, the variable is not marked for export (unless you've got a set -a > somewhere in your init scripts). In your test above, the MYVAR variable > will be expanded before printf ever sees it.
Also, printf is a bad example, as it's not the external command you think it is: [EMAIL PROTECTED] ~]$ echo $SHELL /bin/bash [EMAIL PROTECTED] ~]$ type printf printf is a shell builtin -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]