Skip to content

Commit

Permalink
[spec/word-split] Failing test for bug #628
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Mar 6, 2020
1 parent 7437fbf commit e5de780
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions spec/word-split.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -358,3 +358,13 @@ argv.py star ${myarray[*]}
## END
## N-I dash/ash status: 2
## N-I dash/ash stdout-json: ""

#### Bug #628 split on : with : in literal word (CRASH)
IFS=':'
word='a:'
argv.py ${word}:b
argv.py ${word}:
## STDOUT:
['a', ':b']
['a', ':']
## END
2 changes: 1 addition & 1 deletion test/spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ comments() {
}

word-split() {
sh-spec spec/word-split.test.sh --osh-failures-allowed 6 \
sh-spec spec/word-split.test.sh --osh-failures-allowed 7 \
${REF_SHELLS[@]} $OSH_LIST "$@"
}

Expand Down

0 comments on commit e5de780

Please sign in to comment.