Re: Shell script silently exits. Why?

2016-11-18 Thread Ralf Friedl
Arnout Vandecappelle wrote: I guess you have a 'set -e' somewhere in your script? let returns the value it computed, so if $foo is different from 0, it will return non-0. This causes the shell to exit. It's POSIX behaviour. Bash "let" returns 1 if there is a sytax error within the express

Re: Shell script silently exits. Why?

2016-11-18 Thread Arnout Vandecappelle
On 17-11-16 16:43, Pavel A wrote: > Dear experts, > > We have a strange problem with ash script: the shell silently exits while > executing a script. It is likely caused by a "let" command. > Anyone seen similar behavior? How to debug it? > > Busybox version is 1.22.1 (this is what it prints