Skip to content

Commit

Permalink
checking for ctl-z
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Jan 18, 2024
1 parent bbaa372 commit b1b2360
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions etc/profile.d/help50.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ function _help50 () {
exit
fi

# If last command erred
if [[ $status -ne 0 ]]; then
# If last command erred (and not ctl-z)
# https://tldp.org/LDP/abs/html/exitcodes.html
if [[ $status -ne 0 && $status -ne 148 ]]; then

# Read typescript from disk
local typescript=$(cat "$SCRIPT")
Expand Down
Empty file added tests/foo/foo2/foo3/x.c
Empty file.
Empty file added tests/foo/qux
Empty file.
Empty file added tests/foo/y.c
Empty file.

0 comments on commit b1b2360

Please sign in to comment.