Repeat of a question posted to net.unix (resp: shell processing)
Frederick M. Avolio
avolio at decuac.DEC.COM
Sat Sep 20 22:16:37 AEST 1986
> > Assume that file "nxf" does not exist.
> > Assume that the following lines are in shell script 'cmd':
> > #!/bin/csh
> > rm nxf >& cmd_out
> > echo $status > cmd_stat
> Same problem here on a 4.2 system. But replace "rm nxf" with "ping
> foo" or "test" and everything works OK. Bug in rm?
No a feature! I answered the original poster by mail a week or two
ago (whenever it was posted). After that the poster reposted to
net.unix-wizards saying there was no response from net.unix.
Suggestion -- wait a week or more for your article or propagate
through the net and another week to get something back before you
repost.
Rm checks to see if there is a controlling tty. In the case of a
shell execing a background process, the child does not inherit the
controlling terminal. Rm checks to see and if no controlling terminal
it acts as if you said "-f". This is why no error message in this
case.
--
Fred @ DEC Ultrix Applications Center
INET: avolio at decuac.dec.com * Fight the Fight *
UUCP: {decvax,seismo,cbosgd}!decuac!avolio * Rescue the Unborn *
More information about the Comp.unix.wizards
mailing list