[Pc_Support] Re: LUNA: Linux sh question ....

William A. Mahaffey III wam at HiWAAY.net
Mon Jan 16 15:35:31 EST 2006


Rob Lemley wrote:

> William A. Mahaffey III wrote:
>
>>
>> cp: cannot stat `/work/archive/wam/*.new.tgz': No such file or directory
>>
>> Some more particulars:
>>
>> [wam at INTC2400A, test, 9:10:17am] 434 % ll /work/archive/wam/*.new.tgz
>> 29016073 8012272 -rw-r--r--  1 wam users 8196544481 2006-01-15 01:44 
>> /work/archive/wam/Darkstar.new.tgz
>> 29016071  841308 -rw-r--r--  1 wam users  860650529 2006-01-15 01:02 
>> /work/archive/wam/Indigo.new.tgz
>> 29016070 1538080 -rw-r--r--  1 wam users 1573446048 2006-01-15 01:19 
>> /work/archive/wam/SSE.new.tgz
>
>
>> \cp -p /work/archive/wam/*.new.tgz /home/archive/wam/
>
>
> Hmmmm.  Have you somehow turned of 'globbing' in the shell?  Do you 
> have anything with a "-f" or "noglob" somewhere?  Like
>
> #!/bin/bash -f
>
> or
>
> set -o noglob
>
> or
>
> set -f
>
> or
>
> GLOBIGNORE=...
>
> or
>
> ??
>
> -Rob
>

Oooooohhhh, I *think* we have a winner. I do indeed have '#!/bin/sh -f' 
as the 1st line of the script. I thought that just disabled my .profile 
settings & nothing else, but I am *wrong*, no ? I will try removing the 
offending '-f' & see how it runs this evening, thanks :-).


-- 
	William A. Mahaffey III

 ----------------------------------------------------------------------

	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                           -- Gen. George S. Patton




More information about the Pc_support mailing list