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

Re: 8-bit patch for zle_tricky.c



On May 20,  7:21pm, Zoltan Hidvegi wrote:
} Subject: Re: 8-bit patch for zle_tricky.c
}
} > Adding it to $IFS has no effect in this matter, because zsh does not do
} > field splitting on normal words.  (It should, at least if SH_WORD_SPLIT
} > is set.)
} 
} I do not think so.  Neither bash nor ksh93 does this.  Look:
} 
} % ksh
} $ count () { echo $# ; }
} $ IFS=/
} $ count as/df/gh
} 1
} 
} SH_WORD_SPLIT only changes the result of substitutions.

zsh% /bin/sh
$ IFS=/
$ echo/bar
bar
$ exit/1
zsh% echo $?
1
zsh%

-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern

New male in /home/schaefer:
>N  2 Justin William Schaefer  Sat May 11 03:43  53/4040  "Happy Birthday"




Messages sorted by: Reverse Date, Date, Thread, Author