hush: "wait $!; echo $?" should return 127 if $! already exited
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 7 Nov 2016 22:07:21 +0000 (23:07 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 7 Nov 2016 22:07:21 +0000 (23:07 +0100)
commit26ad94bedcc6a4aa3feb07ea032709bcd517ee46
treeb37f58cf17146d1b6945fa3991585e81223ba286
parent62b717b75ebff3ab00aae2fee0087a8106208a39
hush: "wait $!; echo $?" should return 127 if $! already exited

It would be nice to provide bash-like "remember las exitcode"
thingy, but it's a bit complex. For now, match ash and dash.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c