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 13:26:58
On Friday 12 October 2007 12:14, Jeremy C. Reed wrote:
> On Fri, 12 Oct 2007, George Abdelmalik wrote:
> > > 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
>
> Thanks. That worked.
>
> I will now use:	set -o braceexpand
>
> The man page has documentation for brace expand in at least four different
> places. So I will probably work on that.
>
> Next I need to figure out PR 34724
> http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=34724
>
> I have ${PWD} in my PS1 so long current directories make it so I can't
> even see what I am typing. It is very inconvenient.

I too find it a little annoying. I often hit this issue with the configure 
line of packages which have many --enable or --with options. Never been 
bothered enough by it to try an fix it myself but would appreciate it very 
much if it was. If you come up with a patch that you'd like someone to try 
out then I'd be happy to.

-
george.