Basic Shell script question
absolsp_at_yahoo.com
Date: 03/24/05
- Next message: shea martin: "No SSH-Agent on Solaris 10 x86?"
- Previous message: Toomas Soome: "Re: Attaching an E450 to a Hitachi Thunder; which HBA?"
- Next in thread: Michael Vilain: "Re: Basic Shell script question"
- Reply:(deleted message) Michael Vilain: "Re: Basic Shell script question"
- Reply: Scott Howard: "Re: Basic Shell script question"
- Reply: Logan Shaw: "Re: Basic Shell script question"
- Reply: Oscar del Rio: "Re: Basic Shell script question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Mar 2005 23:15:37 -0800
I have Solaris 9 installed and using a simple shell script.
#!/bin/sh
echo "Begin"
cd /nonexistent/directory
echo "end"
The second echo does not print, the cd command fails and quits the
script. Is this normal behaviour for shell scripts. I ran the script
in Red Hat 9.0 and it worked fine, the cd command printed an error and
the echo command also got executed.
Is this a bug in Solaris shell or a documented behaviour.
thx,
Ab
- Next message: shea martin: "No SSH-Agent on Solaris 10 x86?"
- Previous message: Toomas Soome: "Re: Attaching an E450 to a Hitachi Thunder; which HBA?"
- Next in thread: Michael Vilain: "Re: Basic Shell script question"
- Reply:(deleted message) Michael Vilain: "Re: Basic Shell script question"
- Reply: Scott Howard: "Re: Basic Shell script question"
- Reply: Logan Shaw: "Re: Basic Shell script question"
- Reply: Oscar del Rio: "Re: Basic Shell script question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|