No brace expansion for ash?
Rich Felker
dalias at aerifal.cx
Mon Jul 11 21:20:31 UTC 2011
On Mon, Jul 11, 2011 at 11:19:01AM -0400, Mike Frysinger wrote:
> > in addition to that, the braces only get expanded if the usage warrants it.
> > so if the braces are quoted, or dont follow the simple syntax, the braces get
> > passed through like any other char.
> >
> > $ echo {0..10
> > {0..10
> > $ echo '{0..10}'
> > {0..10}
> >
> > i doubt many scripts will hit this
Irrelevant. Some will. and you break them. Bash does not break them
because brace expansion is off-by-default in non-interactive shells.
> also worth noting that the brace is already a semi-reserved character
> in POSIX itself. you get semi-subshells and functions with it. so
> concern about it being reserved is kind of a red herring.
Completely different context, also irrelevant. POSIX specifies that
"echo {a,b}" prints the string "{a,b}" not "a b".
Rich
More information about the busybox
mailing list