From owner-freebsd-questions Sat Jan 21 11:48:44 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id LAA19560 for questions-outgoing; Sat, 21 Jan 1995 11:48:44 -0800 Received: from walt.disney.com (walt.disney.com [139.104.1.2]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id LAA19552 for ; Sat, 21 Jan 1995 11:48:42 -0800 From: pirzyk@fa.disney.com Received: from dalsdb by walt.disney.com with SMTP id AA16106 (5.65c/IDA-1.4.3 for FreeBSD-questions@freebsd.org); Sat, 21 Jan 1995 11:48:27 -0800 Received: from snowhite.fa.disney.com by dalsdb with smtp (Smail3.1.28.1 #53) id m0rVlnP-000006C; Sat, 21 Jan 95 11:48 PST Received: from temphost by snowhite.fa.disney.com with smtp (Smail3.1.28.1 #53) id m0rVllk-0004CBC; Sat, 21 Jan 95 14:46 EST Message-Id: Date: Sat, 21 Jan 95 14:46 EST To: FreeBSD-questions@FreeBSD.org Subject: Re: shell bug??? Sender: questions-owner@FreeBSD.org Precedence: bulk > > These commands only exist in my $ENV file, which is ~/etc/rc.ksh and > > they do not happen when I test the file with 'ksh etc/rc.ksh' Here > > is a typescript of what I have tested. > ... > > The problem is that it seems that to run a subshell, it is first running > > /bin/sh and the $ENV file gets executed through that. This is the only > > time I can force the errors to show up. > > Somebody (ANSI, I think) decided that 'sh' would run $ENV, where it > didn't before. I had this same problem, fixed by changing .profile: But why when I spawn a subshell is it running /bin/sh in the first place?? > > from: > > export ENV=$HOME/etc/rc.ksh > . $ENV > > to: > > export FILE=$HOME/etc/rc.ksh > ENV='${FILE[(_$-=0)+(_=1)-_${-%%*i*}]}' > export ENV I tried this but it did not work. --- __o [Jim] pirzyk@fa.disney.com -------------------------------------- _'\<,_ System Administrator, Walt Disney Feature Animation Florida (*)/ (*)