From owner-freebsd-bugs Fri Oct 16 07:30:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA04118 for freebsd-bugs-outgoing; Fri, 16 Oct 1998 07:30:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA04093 for ; Fri, 16 Oct 1998 07:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA03057; Fri, 16 Oct 1998 07:30:01 -0700 (PDT) Date: Fri, 16 Oct 1998 07:30:01 -0700 (PDT) Message-Id: <199810161430.HAA03057@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Subject: [Steve Howe ] Re: bin/8319: lost alias due to exports in .profile Reply-To: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/8319; it has been noted by GNATS. From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) To: freebsd-gnats-submit@freebsd.org Cc: Subject: [Steve Howe ] Re: bin/8319: lost alias due to exports in .profile Date: 16 Oct 1998 16:26:43 +0200 ------- Start of forwarded message ------- Date: Fri, 16 Oct 1998 05:25:47 -0800 (AKDT) From: Steve Howe To: "Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?=" Subject: Re: bin/8319: lost alias due to exports in .profile Message-ID: On 16 Oct 1998, Dag-Erling C. [iso-8859-1] Smørgrav wrote: > If you have a more complete description than the one in the PR, go > ahead. I still maintain that the only problem here is your > interpretation ov the sh(1) man page. THIS IS A USER ~/.profile #!/bin/sh echo ~/.profile export TERM=cons25 ENV=~/.shinit; export ENV echo THIS IS A USER ~/.shinit #!/bin/sh #echo ~/.shinit set -E alias a='alias | sort | more' alias q='cd $HOME; ls' UNDER THESE CONDITIONS, ALIAS "a" RESPONDS a: not found IF I MODIFY ~/.profile AS FOLLOWS: #!/bin/sh echo ~/.profile TERM=cons25; export TERM ENV=~/.shinit; export ENV echo ALL WORKS AS EXPECTED. the 1st alias in ~/.shinit is removed whenever a "export VAR=value" command is used in ~./profile. however, if one uses "VAR=value; export VAR" commands in ~/.profile, all aliases in ~/.shinit work as expected. thank you, regards. ------- End of forwarded message ------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message