[Top][All Lists]

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

Re: how 'error' command work?

From: John W. Eaton
Subject: Re: how 'error' command work?
Date: Tue, 23 Jan 1996 14:12:55 -0600

Vinayak Dutt <address@hidden> wrote:

: error() command is for situations when due to certain errors in
: processing, the function has to be aborted.  If you just want to
: falg users for some error which is not terminal to the processing,
: you can display the warning message through disp() command
: instead. Use of error() immediately halts the execution of the
: function and returns control back to the calling routine.

This is true if error() is called from a function, but not from a
script.  If it is called from a script, it prints the error message
but continues to the next command, similar the the way /bin/sh works
if the -e option is not set.  I suppose this behavior should be
optional, so I've added it to the list of things to work on.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]