Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 exptools 1/6/84; site ihuxr.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!ihuxr!stanwyck From: stanwyck@ihuxr.UUCP (Don Stanwyck) Newsgroups: net.unix-wizards,net.unix Subject: Re: Should shell command errors abandon subsequent commands? Message-ID: <1153@ihuxr.UUCP> Date: Thu, 26-Jul-84 15:05:54 EDT Article-I.D.: ihuxr.1153 Posted: Thu Jul 26 15:05:54 1984 Date-Received: Fri, 27-Jul-84 06:49:24 EDT References: <8389@watmath.UUCP> Distribution: net Organization: AT&T Bell Labs, Naperville, IL Lines: 21 Response to letter From: idallen@watmath.UUCP > Consider the following set of shell (any shell) commands and give me > your opinion on what the best, ideal, most friendly behaviour would be: > 1. nosuchcommand ; echo "Is this executed?" > 2. ( nosuchcommand ; cmd ) ; echo "Is this executed?" > 3. echo `nosuchcommand` "Is this executed?" > 4. cmd nosuchglob* ; echo "Is this executed?" > Tell me what you think should ideally happen A) in interactive use at a > terminald and B) inside a shell file. Does it make any difference > whether or not the commands are shell built-ins? In a shell file, > would it make any difference if the commands were on separate lines? Obviously the author of the above lines expects the echo to be executed. If [s]he didn't, [s]he would have used || or && instead of the ;. -- ________ ( ) Don Stanwyck @( o o )@ 312-979-3062 ( || ) Cornet-367-3062 ( \__/ ) ihnp4!ihuxr!stanwyck (______) Bell Labs @ Naperville, IL