tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /bin/sh tilde expansion



On Mon, Jul 14, 2008 at 07:05:43PM -0400, James K. Lowden wrote:
> Greg A. Woods; Planix, Inc. wrote:
> > It seems tilde expansion is broken for /bin/sh (on NetBSD-4 at least)  
> > when the command is "export".
> 
> That's not exactly it, although I'm not sure what is.  Consider this
> Makefile:
> 
> $ cat Makefile.tilde 
> all:
>       ls > /tmp/.t
>       mv /tmp/.t /tmp/t
>       mv /tmp/t ~/
>       
> $ make -f Makefile.tilde
> ls > /tmp/.t
> mv /tmp/.t /tmp/t
> mv /tmp/t ~/
> mv: rename /tmp/t to ~/: Not a directory
> *** Error code 1

tilde expansion probably isn't enabled.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index