Skip to content

Commit

Permalink
Fix getopt call to work on freebsd/apple getopt
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Aug 5, 2016
1 parent 3a439e1 commit 12aa56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/ephemeral-x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ cleanup() {
pkill -KILL -P $$ || true
}

eval "set -- $( (POSIXLY_CORRECT=1 getopt -s sh +x:w:qh "$@" || echo " "FAIL) | tr -d '\n' )"
eval "set -- $( (POSIXLY_CORRECT=1 getopt +x:w:qh "$@" || echo " "FAIL) | tr -d '\n' )"

while [ "0$#" -gt 0 ] ; do
case $1 in
Expand Down

0 comments on commit 12aa56b

Please sign in to comment.