Re: [PATCH] Reset exit status before sourcing a file.

2011-03-10 Thread Herbert Xu
On Wed, Mar 02, 2011 at 08:42:34PM +, Jonathan Nieder wrote: > Tim Allen wrote: > > > The POSIX specification for the dot command[1] states: > > > > EXIT STATUS > > Returns the value of the last command executed, or a zero exit > > status if no command is executed. > > > >

Re: [PATCH] Reset exit status before sourcing a file.

2011-03-02 Thread Jonathan Nieder
Tim Allen wrote: > The POSIX specification for the dot command[1] states: > > EXIT STATUS > Returns the value of the last command executed, or a zero exit > status if no command is executed. > > If an empty file is sourced, then "no command is executed" I agree. Looking thro

[PATCH] Reset exit status before sourcing a file.

2011-03-02 Thread Tim Allen
The POSIX specification for the dot command[1] states: EXIT STATUS Returns the value of the last command executed, or a zero exit status if no command is executed. If an empty file is sourced, then "no command is executed", and hence the exit status should be zero. If the exit