From owner-freebsd-bugs Wed Jun 16 2:15:36 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from smtp04.wxs.nl (smtp04.wxs.nl [195.121.6.59]) by hub.freebsd.org (Postfix) with ESMTP id A421B14E57 for ; Wed, 16 Jun 1999 02:15:33 -0700 (PDT) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org ([195.121.198.94]) by smtp04.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAA5473; Wed, 16 Jun 1999 11:15:32 +0200 Received: (from asmodai@localhost) by daemon.ninth-circle.org (8.9.3/8.9.3) id LAA12983; Wed, 16 Jun 1999 11:16:11 +0200 (CEST) (envelope-from asmodai) Date: Wed, 16 Jun 1999 11:16:11 +0200 From: Jeroen Ruigrok/Asmodai To: bugs@freebsd.org, era@iki.fi Subject: Re: bin/2851: script(1) sets argv[0] of the started shell to "sh" Message-ID: <19990616111611.E12266@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.3i Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I just tested this under my 4.0-CURRENT and $0 still reports sh so script still changes argv[0] to sh. However, given some testing on my CURRENT box and reading the latest manpage on script(1) I stumbled on the following: ENVIRONMENT The following environment variable is utilized by script: SHELL If the variable SHELL exists, the shell forked by script will be that shell. If SHELL is not set, the Bourne shell is assumed. (Most shells set this variable automatically). So I tested this with my ksh: [asmodai@daemon] (29) $ set | grep SHELL SHELL=/usr/local/bin/ksh Then started a script and could still use my aliases and other features. Can you verify if Bash still behaves differently, I think you need 3.x or higher (of FreeBSD that is) based on what I found in the ,v files of script. With kind regards, -- Jeroen Ruigrok van der Werven asmodai(at)wxs.nl The *BSD Programmer's Documentation Project Network/Security Specialist *BSD & (g)VIM : Accept no limitations... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message