segfault bb_make_directory + dirname with musl

2016-11-29 Thread Daniel Sabogal
The following commands cause busybox to segfault on musl-based systems. $ install -D a / $ install -D a /b $ install -D a /b/ This happens because the code in https://git.busybox.net/busybox/tree/coreutils/install.c?h=1_25_1#n196 passes the result of dirname() to bb_make_directory() which

Re: Shell script silently exits. Why?

2016-11-29 Thread Cristian Ionescu-Idbohrn
On Tue, 29 Nov 2016, Pavel A wrote: > > Is it possible to test for active option within ash script? > My version of ash does not seem to recognize "test -o" or [ -o errexit ] To test on errexit you'd do something like: case $- in *e*) echo errexit

Re: Shell script silently exits. Why?

2016-11-29 Thread Pavel A
Apologies for late response and thanks for everyone who pointed to the behavior of let command with zero result. Is it possible to test for active option within ash script? My version of ash does not seem to recognize "test -o" or [ -o errexit ] Grepping my scripts does not find the -e option