* KSH: error when redirecting in subshell: stty: syntax error
@ 1996-03-04 5:00 Curt Smith
1996-03-04 5:00 ` Curt Smith
0 siblings, 1 reply; 2+ messages in thread
From: Curt Smith @ 1996-03-04 5:00 UTC (permalink / raw)
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
On UnixWare SVR4.2 v1.1.4, no error messages
DEC Unix v3.0, No error messages
DEC Unix v3.2c, YES error messages.
Putting trap "" 27 has no effect
stty -tostop is set.
Any Ideas??
Thanks.
--
Curt Smith
curts@compgen.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: KSH: error when redirecting in subshell: stty: syntax error
1996-03-04 5:00 KSH: error when redirecting in subshell: stty: syntax error Curt Smith
@ 1996-03-04 5:00 ` Curt Smith
0 siblings, 0 replies; 2+ messages in thread
From: Curt Smith @ 1996-03-04 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-03-04 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-04 5:00 KSH: error when redirecting in subshell: stty: syntax error Curt Smith
1996-03-04 5:00 ` Curt Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox