Skip to content

Commit

Permalink
Test double-hyphen operand on shell startup
Browse files Browse the repository at this point in the history
  • Loading branch information
magicant committed Sep 10, 2023
1 parent d5ad423 commit 28e2c7a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/startup-p.tst
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,15 @@ __IN__
OK
__OUT__

test_oE 'first operand is ignored if it is a double-hyphen (-c)' -c -- 'echo OK'
__IN__
OK
__OUT__

test_oE 'first operand is ignored if it is a double-hyphen (no -c or -s)' --
echo OK
__IN__
OK
__OUT__

# vim: set ft=sh ts=8 sts=4 sw=4 noet:

0 comments on commit 28e2c7a

Please sign in to comment.