From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1012a6,6951dff1ae2a4a51 X-Google-Attributes: gid1012a6,public X-Google-Thread: fee84,6951dff1ae2a4a51 X-Google-Attributes: gidfee84,public X-Google-Thread: ffe6d,6951dff1ae2a4a51 X-Google-Attributes: gidffe6d,public From: curts@compgen.com (Curt Smith) Subject: Re: KSH: error when redirecting in subshell: stty: syntax error Date: 1996/03/04 Message-ID: <4hfhe5$en4@nntp.atlanta.com>#1/1 X-Deja-AN: 141978384 references: <4hesp2$cdi@nntp.atlanta.com> followup-to: comp.unix.shell,comp.unix.osf.osf1,comp.sys.ncr organization: Internet Atlanta newsgroups: comp.unix.shell,comp.unix.osf.osf1,comp.sys.ncr 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