ali hagigat <hagigat...@gmail.com> writes: > if (sh -c exit 34) then echo ppppppppp;fi > ppppppppp > The following condition should be false, because our exit value is > non-zero.
No, it isn't. You are executing the exit command without an argument, so it uses the exit status of the last command. Since there was no preceding command the exit status is zero. The extra argument is simply ignored. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."