Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
IFS, set, and positional parameters not doing what I expect
- X-seq: zsh-users 7285
- From: jason@xxxxxxx
- To: zsh-users@xxxxxxxxxx
- Subject: IFS, set, and positional parameters not doing what I expect
- Date: Sun, 28 Mar 2004 15:04:19 -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Howdy
In bash and ksh, I do this a lot:
f="a:b:c"
OFS=$IFS; IFS=: ; set -- $f ; IFS=$OFS
which sets $1=a, $2=b, $3=c.
In zsh, this sets $1=a:b:c. I've tried mucking around with
the word splitting options to no avail.
What am I missing?
--
Jason
Messages sorted by:
Reverse Date,
Date,
Thread,
Author