Skip to content

Commit

Permalink
[spec/word-split] Failing tests for #627
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Mar 6, 2020
1 parent f90384c commit 7437fbf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions spec/word-split.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ argv.py star $*
['at', 'a', 'b c']
['star', 'a', 'b c']
## END
## OK dash/ash/osh STDOUT:
## BUG dash/ash STDOUT:
['at', 'ab c']
['star', 'ab c']
## END
Expand All @@ -341,7 +341,20 @@ printf '[%s]\n' $*
[a]
[b c]
## END
## OK dash/ash/osh STDOUT:
## BUG dash/ash STDOUT:
[ab c]
[ab c]
## END

#### IFS='' with ${a[@]} and ${a[*]}
myarray=(a 'b c')
IFS=''
argv.py at ${myarray[@]}
argv.py star ${myarray[*]}

## STDOUT:
['at', 'a', 'b c']
['star', 'a', 'b c']
## END
## N-I dash/ash status: 2
## N-I dash/ash stdout-json: ""
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 3 \
sh-spec spec/word-split.test.sh --osh-failures-allowed 6 \
${REF_SHELLS[@]} $OSH_LIST "$@"
}

Expand Down

0 comments on commit 7437fbf

Please sign in to comment.