Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: curts@compgen.com (Curt Smith)
Subject: Re: KSH: error when redirecting in subshell: stty: syntax error
Date: 1996/03/04	[thread overview]
Message-ID: <4hfhe5$en4@nntp.atlanta.com> (raw)
In-Reply-To: 4hesp2$cdi@nntp.atlanta.com

Curt Smith (curts@compgen.com) wrote:
: Hi,
: 
: Ksh is giving the following error messages.  A simple
: test script is the following:
: 
: ( ksh -c "echo hi" >>/tmp/a 2>&1 ) &
: 
: On NCR Unix SVR4.0 v3.0: the following messages are written
: to /tmp/a:
: 
: UX:basename: ERROR: Incorrect usage
: UX:basename: TO FIX: Usage: basename [ path [ suffix-pattern ] ]
: UX:stty: ERROR: No such device
: UX:stty: ERROR: No such device
: UX:stty: ERROR: No such device
: hi     

I'll answer my own question:

- A fellow net'er emailed the solution to me:

- It's the stuff in my $HOME/.kshrc file that doesn't like
  being run as a detacted process.

- The solution was to do:
  ENV=; export ENV
  In the parent shell script, since I didn't need any of the .kshrc
  stuff for this set of shell scripts.

Silly me, I forgot about shell's reading their .*rc file even if they
are just being used to interprit a script... ;-(


curt




      reply	other threads:[~1996-03-04  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-03-04  5:00 KSH: error when redirecting in subshell: stty: syntax error Curt Smith
1996-03-04  5:00 ` Curt Smith [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox