Re: [PATCH] return status 126 on failure to execute

2019-07-03 Thread Thorsten Glaser
Hi Martijn, > Currently, when a utility fails to execute due to something like E2BIG, mksh > sets the exit status to 1. That is not satisfactory because there is no way to agreed; thanks for the patch, it’s consistent, will apply. bye, //mirabilos -- 21:12⎜ sogar bei opensolaris haben die von d

[PATCH] return status 126 on failure to execute

2019-07-03 Thread Martijn Dekker
Currently, when a utility fails to execute due to something like E2BIG, mksh sets the exit status to 1. That is not satisfactory because there is no way to distinguish this error by exit status from a normal 1 for false/no match/etc. from utilities such as grep. Generally accepted convention i