Skip to content

Commit

Permalink
Set '-xe' instead of '-ex' for toybox
Browse files Browse the repository at this point in the history
Toybox does not support `set -e` but it supports (buggy[1]) `set -x`,
alas it stops processing options on the first unsupported one, so make
`-x` first.

Does does not make toybox work though, because of another bug[2] in eval.

Link: landley/toybox#468
Link: landley/toybox#467
Signed-off-by: Vitaly Chikunov <[email protected]>
  • Loading branch information
vt-alt committed Nov 20, 2023
1 parent 6c15372 commit 958cd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm-run
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ NOBIND=
DRIVE_IF=virtio
FAKESUDO=
RUNUSER=
BASHMINUS=-ex
BASHMINUS=-xe
RDMODE=
unset NRCPU MAXCPU RSYNC SWAP MEM MAXMEM SOFTMEM TMPFS FSFEAT STDOUT HVC HEREDOC RDSHELL
unset RDBREAK
Expand Down

0 comments on commit 958cd56

Please sign in to comment.