Bah.
What I -meant- to type, was:
-cd $PC
+cd $PC || exit 1
(the parens below appear to cause the exit to just stop in the generated
subshell)
my sh warns on the failed cd anyway, so the above is better.
I am now going to get some #$@ coffee. =-)
Will Coleda wrote:
>
> "H.Merijn Brand" wrote:
> >
> > On Thu 30 Aug 2001 15:54, "Will Coleda" <[EMAIL PROTECTED]> wrote:
> > > I have re-stumbled over the fact that I don't have mailx on my linux
> > > system, but my copy of mail does support -s.
> > >
> > > my $^O just reports "linux".
> > >
> > > Should we, perhaps, just use sendmail? (it's about as portable as mail
> > > and mailx, neh?)
> >
> > http://home.hccnet.nl/h.m.brand/Test-Smoke-1.06.tgz
>
> For the next release, in smoke.sh, suggested change:
>
> -cd $PC
> +cd $PC || (echo "cd $PC failed"; exit 1)
>
> ... That should -help- avoid the problem of the poor person who
> --delete'd his homedir.