Skip to content

Commit

Permalink
tests/bg: Don't require exact match for bg output
Browse files Browse the repository at this point in the history
The format of the command string displayed by the bg built-in is not
strictly specified by POSIX. ksh seems to print the entire command line
which may include the "&" symbol and other commands that are not part of
the job. Probably we should accept this as conformant.
  • Loading branch information
magicant committed Jan 7, 2024
1 parent 8ed979d commit 5045f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bg-p.tst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ __OUT__
test_OE -e 0 'bg prints resumed job' -m
sleep 1&
bg >bg.out
grep -qx '\[[[:digit:]][[:digit:]]*][[:blank:]]*sleep 1' bg.out
grep -q '^\[[[:digit:]][[:digit:]]*][[:blank:]]*sleep 1' bg.out
__IN__

test_OE -e 0 'exit status of bg' -m
Expand Down

0 comments on commit 5045f62

Please sign in to comment.