Re: Why bash exports variables implicitly?
On Thursday 23 May 2002 23:33, Shaul Karl wrote:
> $ 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.
>
> I believe this wasn't used to be like that. Did the default behavior
> changed or is there some configuration file for this behavior?
That behaviour is correct.
You type "prinf $MYVAR". But bash executes "printf testing".
I checked it wrong. If u export a variable the its avalible for all sub
sessions like:
$ export TEST=hello
$ bash
$ echo $TEST
hello
$exit
***** or ****
$ TEST=hello
$ bash
$ echo $TEST
<nothing>
$ exit
cheers,
Raffaele
--
Raffaele Sandrini <rasa@gmx.ch>
Annoyed about M$ Windows? Don't worry. Try Linux! (www.linux.org)
For encrypted Mail get my Public Key from "search.keyserver.net"
ID: 0xEC4950E9
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: