Subject: Re: brace expansion and ksh?
To: Jeremy C. Reed <reed@reedmedia.net>
From: George Abdelmalik <gabdelmalik@avdat.com.au>
List: netbsd-help
Date: 10/12/2007 11:00:27
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  root@tb10.avdat.com.au:/mnt/netbsd/obj/sys/arch/i386/compile/tb10 i386

-
george.