Re: Doesn't MY_ENV=abc printf "${MY_ENV}\n" suppose to print abc?
* Shaul Karl (shaul@actcom.net.il) wrote:
> Package: bash
> Version: 2.05b-8.1
>
> According to my understanding of the manual page,
>
> $ MY_ENV=abc printf "${MY_ENV}\n"
>
> Should have print abc. But it does not:
>
> $ MY_ENV=abc printf "${MY_ENV}\n"
>
> $
>
> What am I missing?
an 'export' and a ';', like so:
$ export MY_ENV=abc ; printf "${MY_ENV}\n"
abc
iain
--
wh33, y1p33 3tc.
"If sharing a thing in no way diminishes it, it is not rightly owned if it is
not shared." -St. Augustine
Reply to: