[PLUG] File renaming scripts?
Karl M. Hegbloom
karlheg at pdxlinux.org
Tue Nov 26 07:07:10 UTC 2002
On Mon, 2002-11-25 at 19:49, Randal L. Schwartz wrote:
> >>>>> "Karl" == Karl M Hegbloom <karlheg at pdxlinux.org> writes:
>
> Karl> On Mon, 2002-11-25 at 12:13, Randal L. Schwartz wrote:
> >> See? /bin/sh isn't that dumb. :)
>
> Karl> Hmmm. What shell is that? Does POSIX mandate that behavior?
>
> It worked that way in the V7 One True Shell. Every Bourne-like shell
> after that has always said "IFS happens before globbing". Even
> csh-like shells work that way. I don't know what shell you're using
> that doesn't work that way... maybe you're thinking of COMMAND.COM
> or something.
I've actually never TRIED to do that -- I misunderstood how it works.
Good to know that I can iterate over the results of a glob, and get file
names with spaces and stuff in them without needing special handling.
If I interpolate those into a string, THEN they'll get split, right?
More information about the PLUG
mailing list