From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael A. Chase" To: "Sergey Okhapkin" , , "'Andy Piper'" Subject: Bash Environment (Was: Bash history?) Date: Tue, 16 Sep 1997 06:16:00 -0000 Message-id: <199709161314.IAA17515@dfw-ix7.ix.netcom.com> X-SW-Source: 1997-09/msg00300.html Content-type: multipart/mixed; boundary="----------=_1583532712-65103-58" This is a multi-part message in MIME format... ------------=_1583532712-65103-58 Content-length: 1347 I have similar problems. It appears that the only environment variable that gets changed from MSDOS form to UNIX form is $PATH. All the others keep their backslashes and semicolons. I put code in /etc/profile to fix the environment (attached). Unfortunately, I have never seen /etc/profile run by default so I added a check for it to .bashrc (which does work) to run both /etc/profile and .bash_profile. Is there something else I should be doing to get the correct environment at bash startup? Mac :}) -----Original Message----- From: Sergey Okhapkin To: gnu-win32@cygnus.com ; 'Andy Piper' Date: Sunday, September 07, 1997 22:02 Subject: RE: Bash history? >Andy Piper wrote: >> 1) ~ seems to be interpreted wrongly. If I do `cd ~' I get: >> bash.exe: C:WINNTProfilesandyp: No such file or directory >> cd $HOME works fine. Somehow the /'s are getting stripped out. > >I'm sure, there are backslashes instead of slashes in your HOME env. var. Set HOME to >c:/WINNT/Profiles/andyp. > >> >> 2) History is not preserved between sessions. Although bash >> writes out a history file - .bash_history - correctly. It is not read when > >Fix the first problem, and the second one should came out. > >-- >Sergey Okhapkin, http://www.lexa.ru/sos >Moscow, Russia >Looking for a job ------------=_1583532712-65103-58 Content-Type: text/plain; charset=us-ascii; name="profile" Content-Disposition: inline; filename="profile" Content-Transfer-Encoding: base64 Content-Length: 1497 CmlmIFsgJHtfRVRDX1BST0ZJTEVfOj0wfSA9IDAgXTsgdGhlbgogICBleHBv cnQgX0VUQ19QUk9GSUxFXz0xCgogICBpZiBbICQoZW52IHwgZ3JlcCAnOycg fCB3YyAtYykgLW5lIDAgXTsgdGhlbgogICAgICBlY2hvICJGaXhpbmcgZW52 IgogICAgICAjIEFkZCAnVU5JWCcgZXhlY3V0YWJsZSBkaXJlY3RvcmllcyBh bmQgcmVtb3ZlIHdpbmRvd3Mgb25lcwogICAgICBQQVRIPSIvdXNyL2xvY2Fs L2JpbjovYmluOi91c3IvYmluOi9iaW46JFBBVEgiCiAgICAgIFBBVEg9YGVj aG8gIiRQQVRIIiB8IHNlZCAtZSAncyw6L3Blcmw1LjAwNC5iYy9iaW4sLDtz LDovd2JpbiwsZydgCgogICAgICAjIENvbnZlcnQgRE9TIGJhY2tzbGFzaGVz LCBkcml2ZXMsIGFuZCBwYXRoIHNlcGFyYXRvcnMgaW4gZW52aXJvbm1lbnQg dG8gVU5JWAogICAgICAjIDEuIERvbid0IHRvdWNoIFBBVEgKICAgICAgIyAy LiBEb24ndCBsaW5lcyBzdGFydGluZyB3aXRoIHB1bmN0dWF0aW9uICFfQCMl XiYqKCk9Kzo7PD4/L2B+LQogICAgICAjIDMuIEJhY2tzbGFzaCAtPiBzbGFz aAogICAgICAjIDQuIEM6LyAtPiAvIGFuZCBDOiAgLT4gLwogICAgICAjIDUu IERSSVZFOiAtPiAvRFJJVkUKICAgICAgIyA2LiA7IC0+IDoKICAgICAgIyA3 LiBRdW90ZSB2YWx1ZXMKCiAgICAgIHRmaWxlPS90bXAvcHJvZmlsZS4kJAog ICAgICBlbnYgfCBcCiAgICAgICAgIHNlZCAtZSAnL14kL2Q7L15QQVRIPS9k JyBcCiAgICAgICAgICAgICAtZSAnL15bIV9AIyVeJiooKT0rOjs8Pj8vYH4t XS9kJyBcCiAgICAgICAgICAgICAtZSAncyxcXCwvLGcnIFwKICAgICAgICAg ICAgIC1lICdzLFtDY106LywvLGcnIC1lICdzLFtDY106LC8sZycgXAogICAg ICAgICAgICAgLWUgJ3MsXChbYS16QS1aXVwpOiwvL1wxLyxnJyBcCiAgICAg ICAgICAgICAtZSAncyw7LDosZycgXAogICAgICAgICAgICAgLWUgInMvXlwo W149XVtePV0qPVwpXCguKlwpJC9cMSdcMicvIiA+ICR0ZmlsZQogICAgICBz b3VyY2UgJHRmaWxlCiAgICAgIHJtICR0ZmlsZQogICBmaQoKICAgIyBPdGhl ciBzaGVsbCBpbml0aWFsaXphdGlvbiBzdHVmZgogICBleHBvcnQgVEVSTT1s aW51eAogICBzZXQgLW8gdmkKZmkKCg== ------------=_1583532712-65103-58--