Re: Doesn't MY_ENV=abc printf "${MY_ENV}\n" suppose to print abc?

2003-08-03 Thread Dave Carrigan
On Sun, Aug 03, 2003 at 06:57:44AM -0400, Shawn Lamson wrote: > On Sat, August 02 at 12:08 PM EDT > Dave Carrigan <[EMAIL PROTECTED]> wrote: > >The "MY_ENV=abc printf" syntax sets the environment variable for the > >printf subprocess. And, in fact, when printf runs, MY_ENV is truly set > >to abc. H

Re: Doesn't MY_ENV=abc printf "${MY_ENV}\n" suppose to print abc?

2003-08-03 Thread Dave Carrigan
On Sun, Aug 03, 2003 at 01:50:18AM +0300, Shaul Karl wrote: > Your proposal has some side effects which might be undesirable. More > specifically, with your proposal MY_ENV will be set until you > explicitly unset it or exit the shell. With what I tried to do, MY_ENV > will only be set for the fo

Re: Doesn't MY_ENV=abc printf "${MY_ENV}\n" suppose to print abc?

2003-08-03 Thread Shawn Lamson
On Sat, August 02 at 12:08 PM EDT Dave Carrigan <[EMAIL PROTECTED]> wrote: >On Sat, Aug 02, 2003 at 08:49:36PM +0300, Shaul Karl wrote: > >> According to my understanding of the manual page, >> >> $ MY_ENV=abc printf "${MY_ENV}\n" >> >> Should have print abc. But it does not: >> >> $

Re: Doesn't MY_ENV=abc printf "${MY_ENV}\n" suppose to print abc?

2003-08-02 Thread Shaul Karl
On Sat, Aug 02, 2003 at 11:55:03PM +0100, iain d broadfoot wrote: > > i can't see in the man page an example like the one you show, what > section is it in? > Quoting the ENVIRONMENT section: The environment for any simple command or function may be augmented temporarily by pre

Re: Doesn't MY_ENV=abc printf "${MY_ENV}\n" suppose to print abc?

2003-08-02 Thread Shaul Karl
On Sat, Aug 02, 2003 at 10:22:19PM +0100, iain d broadfoot wrote: > * Shaul Karl ([EMAIL PROTECTED]) 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 doe

Re: Doesn't MY_ENV=abc printf "${MY_ENV}\n" suppose to print abc?

2003-08-02 Thread iain d broadfoot
* Shaul Karl ([EMAIL PROTECTED]) wrote: > On Sat, Aug 02, 2003 at 10:22:19PM +0100, iain d broadfoot wrote: > > * Shaul Karl ([EMAIL PROTECTED]) wrote: > > > Package: bash > > > Version: 2.05b-8.1 > > > > > > According to my understanding of the manual page, > > > > > > $ MY_ENV=abc printf

Re: Doesn't MY_ENV=abc printf "${MY_ENV}\n" suppose to print abc?

2003-08-02 Thread iain d broadfoot
* Shaul Karl ([EMAIL PROTECTED]) 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?

Re: Doesn't MY_ENV=abc printf "${MY_ENV}\n" suppose to print abc?

2003-08-02 Thread Dave Carrigan
On Sat, Aug 02, 2003 at 08:49:36PM +0300, Shaul Karl wrote: > 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? The "MY_ENV=abc printf" synt

Doesn't MY_ENV=abc printf "${MY_ENV}\n" suppose to print abc?

2003-08-02 Thread Shaul Karl
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? -- System Information: Debian Release: testing/unstable Architect