Date: Fri, 16 Oct 1998 07:30:01 -0700 (PDT) From: dag-erli@ifi.uio.no (Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?= ) To: freebsd-bugs@FreeBSD.ORG Subject: [Steve Howe <groggy@iname.com>] Re: bin/8319: lost alias due to exports in .profile Message-ID: <199810161430.HAA03057@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <groggy@iname.com>] 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 <groggy@iname.com> To: "Dag-Erling C. =?iso-8859-1?Q?Sm=F8rgrav?=" <dag-erli@ifi.uio.no> Subject: Re: bin/8319: lost alias due to exports in .profile Message-ID: <Pine.BSF.3.96.981016051817.1611A-100000@abc.xyz.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810161430.HAA03057>