From owner-help-octave at bevo dot che dot wisc dot edu Tue Jan 23 14:12:56 1996 Subject: Re: how 'error' command work? From: "John W. Eaton" To: Dutt dot Vinayak at Mayo dot EDU cc: windy at ksc9 dot th dot com, help-octave@bevo.che.wisc.edu Date: Tue, 23 Jan 1996 14:12:55 -0600 Vinayak Dutt 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. Thanks, jwe