Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: IFS, set, and positional parameters not doing what I expect



> -------- 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