Re: brace expansion and ksh?
George Abdelmalik <[email protected]> Fri, 12 Oct 2007 11:00:27 +1000
| Newsgroups | gmane.os.netbsd.help |
|---|---|
| Organization | Aviation Data Systems |
| Message-ID | <[email protected]> |
On Friday 12 October 2007 08:35, you wrote:
> I though ksh didn't have brace expansion. But today I was reading the man
> page and it was documented with an example.
>
> But the example does not work:
>
> $ ksh
> $ echo a{c,b{X,Y},d}e
> a{c,b{X,Y},d}e
> $ bash
> bash-3.2$ echo a{c,b{X,Y},d}e
> ace abXe abYe ade
>
> Even simple example in ksh doesn't work for me:
>
> $ echo a{b,c,d,e}f
> a{b,c,d,e}f
How about when you invoke a ksh with the braceexpand option.
$ ksh -o braceexpand
$ echo a{c,b{X,Y},d}e
ace abXe abYe ade
$ uname -a
NetBSD tb10.avdat.com.au 3.1 NetBSD 3.1 (tb10) #2: Wed Jan 24 12:37:14 EST
2007 [email protected]:/mnt/netbsd/obj/sys/arch/i386/compile/tb10 i386
-
george.