[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to do? Possible?
From: |
Bob Proulx |
Subject: |
Re: How to do? Possible? |
Date: |
Mon, 25 Jul 2011 17:47:08 -0600 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Linda Walsh wrote:
> I didn't know why it behaved differently, but as you informed me
> the difference is 'one's well-defined, and the other is not, I can
> see why there 'could' be a difference... ;-)
>
> (which of course could change tomorrow, I suppose..)
Not the second well defined case. It can't change without being in
conflict with the standards. You would always be safe to use it in
any standard conforming shell.
If you are still not convinced then consider these next two examples.
#!/bin/sh
printfoovar() { echo $foo ;}
foo="bar"
( printfoovar )
#!/bin/sh
printfoovar() { eval echo \$$foo ;}
bar="hello"
foo="bar"
( printfoovar )
Bob
- How to do? Possible?, Linda Walsh, 2011/07/25
- Re: How to do? Possible?, Pierre Gaston, 2011/07/25
- Re: How to do? Possible?, Linda Walsh, 2011/07/25
- Re: How to do? Possible?, DJ Mills, 2011/07/25
- Re: How to do? Possible?, Linda Walsh, 2011/07/25
- Re: How to do? Possible?, Bob Proulx, 2011/07/25
- Re: How to do? Possible?, Linda Walsh, 2011/07/25
- Re: How to do? Possible?, Linda Walsh, 2011/07/25
- Re: How to do? Possible?, Eric Blake, 2011/07/25
- Re: How to do? Possible?, Linda Walsh, 2011/07/25
- Re: How to do? Possible?,
Bob Proulx <=
- Re: How to do? Possible?, Dennis Williamson, 2011/07/25
- Re: How to do? Possible?, Bob Proulx, 2011/07/25
- Re: How to do? Possible?, Dennis Williamson, 2011/07/26
- Re: How to do? Possible?, Davide Brini, 2011/07/25
- Re: How to do? Possible?, Pierre Gaston, 2011/07/25
Re: How to do? Possible?, Steven W. Orr, 2011/07/25