Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: IFS, set, and positional parameters not doing what I expect
- X-seq: zsh-users 7289
- From: jason@xxxxxxx
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: RE: IFS, set, and positional parameters not doing what I expect
- Date: Sun, 28 Mar 2004 18:29:34 -0700
- Cc: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
> -------- Original Message --------
> Subject: Re: IFS, set, and positional parameters not doing what I
>
> Works For Me (tm):
>
> schaefer<501> setopt shwordsplit
> schaefer<502> f="a:b:c"
> schaefer<503> OFS=$IFS; IFS=: ; set -- $f ; IFS=$OFS
> schaefer<504> echo $1
> a
I must be on drugs. I swear I tried that 3 different ways and
it didn't work.
Naturally, it works fine now. Thanks!
--
Jason
Messages sorted by:
Reverse Date,
Date,
Thread,
Author