Tweak handling of exit status in libdemo
[?]
Mar 22, 2023, 4:02 PM
2R2ODHJNY4METQQDEMSN3DR3YPZTHYNF3JN2VGA4JADM54KC6W5QCDependencies
- [2]
55PCHITPClean up libdemo - [3]
VT7F3Q7QClean up libdemo - [4]
PZXD3DZGTweaks - [5]
DIZWRCHFTweak output - [6]
Q6IC7LVGTweak libdemo - [7]
4ZATYF22Add license - [8]
M5U5PAX7Add wrapper script, improve libdemo - [9]
7AUC4NKIInitial commit - [10]
VMUKZQZRWork on 02-nix-build - [11]
6EUZBX7MUpdate README - [12]
52F4Q6CJUpdate README - [13]
XESRNBNVTweak i
Change contents
- replacement in libdemo/libdemo.sh at line 163
x "$@" || truelocal -r __libdemo_expect=democmd "$@" - replacement in libdemo/libdemo.sh at line 169
echo "Skipped interactive command '$*"if __libdemo_use_colour; thenlocal -r prefix="\e[1;31m[!]\e[0m"echo -e "${prefix} Skipped interactive command\e[1m" "$@" "\e[0m"elselocal -r prefix="[!]"echo -e "${prefix} Skipped interactive command" "$@"fi - replacement in libdemo/libdemo.sh at line 180
local -r __libdemo_expect=successif __libdemo_is_interactive; thenlocal -r __libdemo_expect=elselocal -r __libdemo_expect=successfi - replacement in libdemo/libdemo.sh at line 189
local -r __libdemo_expect=failureif __libdemo_is_interactive; thenlocal -r __libdemo_expect=elselocal -r __libdemo_expect=failurefi - replacement in README.md at line 55
* `x`: Print the provided arguments and execute them, expecting success. Pauses after the command is shown and after the command is run.* `f`: Print the provided arguments and execute them, expecting failure. Pauses after the command is shown and after the command is run.* `i`: Print the provided arguments and execute them in interactive mode only, ignoring exit status. Pauses after the command is shown and after the command is run.* `x`: Print the provided arguments and execute them, expecting success in automatic mode and ignoring exit status in interactive mode.Pauses after the command is shown and after the command is run.* `f`: Print the provided arguments and execute them, expecting failure in automatic mode and ignoring exit status in interactive mode.Pauses after the command is shown and after the command is run.* `i`: Print the provided arguments and execute them in interactive mode only, ignoring exit status.Pauses after the command is shown and after the command is run.