Re: Bug with local variable
On Tue, Sep 14, 2010 at 10:27 AM, Mario Jungwirth wrote: > Hello > > I found a bug with local variable. > My source (The directory dosn't exists!!!) > > function test() > { > local myreturn=$(ls -la /directoryNotExists) > echo "return value=$?" &
Bug with local variable
Hello I found a bug with local variable. My source (The directory dosn't exists!!!) function test() { local myreturn=$(ls -la /directoryNotExists) echo "return value=$?" } The "return value" is now 0! If i remove the "local" the "return value&q