<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cygwin bash --login in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884511#M10315</link>
    <description>Dear Latif,&lt;BR /&gt;&lt;BR /&gt;Thankyou very much for responding! I was wondering if anyone was going to bother to respond...&lt;BR /&gt;&lt;BR /&gt;1. The situation is not critical, but I would like to find out what is going on&lt;BR /&gt;2. SFU is not an option for me because my cygwin is working fine and bash is a great shell&lt;BR /&gt;3. I didn't look at the faq because I am experienced with shells and so on. This unexpected bash behaviour is strange for me.&lt;BR /&gt;4. Permissions are: read and execute for all and as I had mentioned, the .bashrc file is read if I start using bash -i or just bash but not when I use bash --login even though $HOME is exported and correct.&lt;BR /&gt;5. Sorry for only 3 points this time but your response was not truly helpful (maybe the next one will be)&lt;BR /&gt;&lt;BR /&gt;Thanks, Christian</description>
    <pubDate>Thu, 10 Feb 2005 04:43:17 GMT</pubDate>
    <dc:creator>Christian Deutsch_1</dc:creator>
    <dc:date>2005-02-10T04:43:17Z</dc:date>
    <item>
      <title>cygwin bash --login</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884509#M10313</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;I start my bash using this script:&lt;BR /&gt;--&lt;BR /&gt;@echo off&lt;BR /&gt;&lt;BR /&gt;C:&lt;BR /&gt;chdir \home\homedir&lt;BR /&gt;&lt;BR /&gt;set CYGWIN=tty&lt;BR /&gt;set HOME=/cygdrive/c/home/homedir&lt;BR /&gt;set ENV=/cygdrive/c/home/homedir/.bashrc&lt;BR /&gt;&lt;BR /&gt;c:\bin\bash -i&lt;BR /&gt;--&lt;BR /&gt;This script correctly loads my .bashrc file.&lt;BR /&gt;&lt;BR /&gt;Strangely (for me), if, while in bash, I start bash --login, this new bash does *not* load my .bashrc file, even though ENV is exported correctly in /cygdrive/c/home/homedir/.profile&lt;BR /&gt;&lt;BR /&gt;Any idea why this is so?&lt;BR /&gt;&lt;BR /&gt;All helpful answers will get points.&lt;BR /&gt;&lt;BR /&gt;Thanks, Christian</description>
      <pubDate>Tue, 08 Feb 2005 08:10:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884509#M10313</guid>
      <dc:creator>Christian Deutsch_1</dc:creator>
      <dc:date>2005-02-08T08:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: cygwin bash --login</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884510#M10314</link>
      <description>Christian,&lt;BR /&gt;&lt;BR /&gt;Will this help:&lt;BR /&gt;&lt;A href="http://cygwin.com/faq.html" target="_blank"&gt;http://cygwin.com/faq.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Aso, you didn't mention what Windows OS are you running Cygwin on?&lt;BR /&gt;&lt;BR /&gt;Did you run env command to see if the environment is really exported?&lt;BR /&gt;&lt;BR /&gt;echo $SHELL to double check the shell &lt;BR /&gt;&lt;BR /&gt;Also, check the bashrc file permissions?&lt;BR /&gt;&lt;BR /&gt;Finaly, I'd prefer to install and run SFU in Windows OS. SFU has different shell environment that you can use:&lt;BR /&gt;&lt;A href="http://www.microsoft.com/windows/sfu/" target="_blank"&gt;http://www.microsoft.com/windows/sfu/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please keep me updated&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Feb 2005 23:48:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884510#M10314</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2005-02-09T23:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: cygwin bash --login</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884511#M10315</link>
      <description>Dear Latif,&lt;BR /&gt;&lt;BR /&gt;Thankyou very much for responding! I was wondering if anyone was going to bother to respond...&lt;BR /&gt;&lt;BR /&gt;1. The situation is not critical, but I would like to find out what is going on&lt;BR /&gt;2. SFU is not an option for me because my cygwin is working fine and bash is a great shell&lt;BR /&gt;3. I didn't look at the faq because I am experienced with shells and so on. This unexpected bash behaviour is strange for me.&lt;BR /&gt;4. Permissions are: read and execute for all and as I had mentioned, the .bashrc file is read if I start using bash -i or just bash but not when I use bash --login even though $HOME is exported and correct.&lt;BR /&gt;5. Sorry for only 3 points this time but your response was not truly helpful (maybe the next one will be)&lt;BR /&gt;&lt;BR /&gt;Thanks, Christian</description>
      <pubDate>Thu, 10 Feb 2005 04:43:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884511#M10315</guid>
      <dc:creator>Christian Deutsch_1</dc:creator>
      <dc:date>2005-02-10T04:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: cygwin bash --login</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884512#M10316</link>
      <description>No worries about the points! I'll be glad if I could help you.&lt;BR /&gt;The reason why I posted the FAQ is because I found this maybe helpful:&lt;BR /&gt;&lt;BR /&gt;Why doesn't bash read my .bashrc file on startup?&lt;BR /&gt;Your .bashrc is read from your home directory specified by the HOME environment variable. It uses /.bashrc if HOME is not set. So you need to set HOME correctly, or move your .bashrc to the top of the drive mounted as / in Cygwin. &lt;BR /&gt;&lt;BR /&gt;Sorry if I couldn't be much of help since I'm not an expert in Cgywin. Perhaps, you'll get more luck in the HP-UX side:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/familyhome.do?familyId=117" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/familyhome.do?familyId=117&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Thu, 10 Feb 2005 05:17:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884512#M10316</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2005-02-10T05:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: cygwin bash --login</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884513#M10317</link>
      <description>Dear Latif,&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick response :-)&lt;BR /&gt;&lt;BR /&gt;1. I tried changing HOME from /cygdrive/c/home/homedir to c:/home/homedir. It gave me a slightly different result but didn't read in my .bashrc file&lt;BR /&gt;2. I tried copying .bashrc to /. Still didn't get read in when starting bash --login&lt;BR /&gt;3. Maybe I could post the question to the ITRC Linux forum, since bash is in Linux too.&lt;BR /&gt;&lt;BR /&gt;Thanks again, Christian</description>
      <pubDate>Thu, 10 Feb 2005 05:25:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884513#M10317</guid>
      <dc:creator>Christian Deutsch_1</dc:creator>
      <dc:date>2005-02-10T05:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: cygwin bash --login</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884514#M10318</link>
      <description>Christian,&lt;BR /&gt;&lt;BR /&gt;The worst case will be to reinstall cygwin!&lt;BR /&gt;&lt;BR /&gt;just my 0.02 Cents&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Feb 2005 23:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884514#M10318</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2005-02-10T23:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: cygwin bash --login</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884515#M10319</link>
      <description>I wouldn't reinstall, I don't think installation is the problem, but thanks for replying anyway.&lt;BR /&gt;&lt;BR /&gt;As already mentioned, maybe I'll post this question in the Linux forum, since it has more to do with bash than it has to do with cygwin.&lt;BR /&gt;&lt;BR /&gt;Kind regards, Christian</description>
      <pubDate>Fri, 11 Feb 2005 03:38:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/cygwin-bash-login/m-p/4884515#M10319</guid>
      <dc:creator>Christian Deutsch_1</dc:creator>
      <dc:date>2005-02-11T03:38:31Z</dc:date>
    </item>
  </channel>
</rss>

