Subject: Re: small fix for /etc/netstart
To: Eric S. Hvozda <>
From: Louis A. Mamakos <louie@TransSys.COM>
List: netbsd-bugs
Date: 01/03/1994 00:48:38
> Um, I thought the error was the fact that /etc/hostname.* was supposed to be
> /etc/hostname/*.  Expansion you mention above happens because the current
> directory is /, so you see things like /etc/hostname.netbsd, 
> /etc/hostname.bin, etc...
> Someone correct me if I'm wrong here...

The problem is that the IFS shell variable has been frobbed, and the
expansion doesn't happen as expected. 

    set -- `echo /etc/hostname.*`
    unset tmp

In the echo command, there are two arguments passed: "/etc/hostname" and "*",
since IFS now includes the "." character.  That's why all that interesting
stuff gets included..

What I did was to change the line in question to be:

    set -- `IFS=" " echo /etc/hostname.*`

and thing are right again.