tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ Redirect pipe back to console in the loop

kill -9 sometimes required ▻

unexpected exit

In article <383166a6.90808556@news.dal.ca>, nikki <tony.slade@dal.ca> wrote:
>If '>' is found the script proceeds to completion.  If not it exits
>unexpectedly at this line.  How can I protect against this exit?

You don't have `-e' (exit on errors) in effect, by any chance?  This
would happen if the script begins `#! /bin/ksh -e', or says `set -e'.

Tim.
--
Tim Goodwin   | "People think [ W. Gibson is ] hi-tech because his prose
Leicester, UK | is as pleasant to read as a C++ program." -- JT

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: unexpected exit
Date: 17 Nov 1999 10:18:37 -0000
Organization: University of Leicester, UK
Message-ID: <80tvej$b2a$1@ltpcg.star.le.ac.uk>
References: <383166a6.90808556@news.dal.ca>

△ comp.unix.shell △

◅ Redirect pipe back to console in the loop

kill -9 sometimes required ▻