Permalink
Browse files

Make note of a bug in dash I found while writing the configure script.

  • Loading branch information...
Andy Chu
Andy Chu committed Sep 18, 2017
1 parent 71bacc7 commit 1d964ee5085656ad65a17ea6f2f4152b33ec09a7
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/glob.test.sh
View
@@ -175,3 +175,15 @@ echo -* hello zzzz?
# stdout-json: "-* hello zzzz?\n"
# N-I dash/mksh/ash stdout-json: "hello zzzzz"
# status: 0
### Splitting/Globbing doesn't happen on local assignment
f() {
# Dash splits words and globs before handing it to the 'local' builtin. But
# ash doesn't!
local foo=$1
echo "$foo"
}
f 'void *'
# stdout: void *
# BUG dash stdout-json: ""
# BUG dash status: 2

0 comments on commit 1d964ee

Please sign in to comment.