Skip to content

Commit

Permalink
fix regress fail (re: 4c7727c)
Browse files Browse the repository at this point in the history
Obviously, we should not run regression tests involving brace
expansion if brace expansion has been compiled out.
  • Loading branch information
McDutchie committed Jun 13, 2023
1 parent 4c7727c commit 1abdbfb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/cmd/ksh93/tests/glob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,14 @@ test_glob '<a\\b.txt>' $unquoted_patvar
# 93u+m/1.0.5 regression - glob expansion with brace expansion and parameter exapansion
v='./'
mkdir -p bin/BAD sbin/WRONG
test_glob '<./bin/*> <./sbin/*>' "./"{bin,sbin}"/*"
((SHOPT_BRACEPAT)) && test_glob '<./bin/*> <./sbin/*>' "./"{bin,sbin}"/*"
test_glob '<./bin/*>' "$v"bin"/*"
test_glob '<./bin/*> <./sbin/*>' "$v"{bin,sbin}"/*"
((SHOPT_BRACEPAT)) && test_glob '<./bin/*> <./sbin/*>' "$v"{bin,sbin}"/*"
unset null
test_glob '<b*> <s*>' {b,s}"*"
test_glob '<b*> <s*>' $null{b,s}"*"
test_glob '<*b> <*c>' $null"*"{b,c}
test_glob '<*b> <*c>' "*"$null{b,c}
((SHOPT_BRACEPAT)) && test_glob '<b*> <s*>' {b,s}"*"
((SHOPT_BRACEPAT)) && test_glob '<b*> <s*>' $null{b,s}"*"
((SHOPT_BRACEPAT)) && test_glob '<*b> <*c>' $null"*"{b,c}
((SHOPT_BRACEPAT)) && test_glob '<*b> <*c>' "*"$null{b,c}
test_glob '<*>' $null"*"

# ======
Expand Down

0 comments on commit 1abdbfb

Please sign in to comment.