bash 3.2 on interix

2009-04-23 Thread Markus Duft
Hi!

Some while ago now, i did the necessary bits to build and use bash
successfully on interix (3.5/5.2/6.0). the patches can be found (in the
order i applied them) at [1] and [2]. additionally i had to do this to
make it work right:

146 if [[ ${CHOST} == *-interix* ]]; then
147 export ac_cv_header_inttypes_h=no
148 export gt_cv_header_inttypes_h=no
149 export jm_ac_cv_header_inttypes_h=no
150 
151 # argh... something doomed this test on windows ... ???
152 export bash_cv_type_intmax_t=yes
153 export bash_cv_type_uintmax_t=yes
154 fi

see also the gentoo-prefix ebuild for the complete build instructions
used by me (or better: us :)) at [3]

[1]
http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/app-shells/bash/files/bash-3.2-getcwd-interix.patch
[2]
http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/app-shells/bash/files/bash-3.2-interix-stdint.patch
[3]
http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/app-shells/bash/bash-3.2_p48-r1.ebuild

Cheers, Markus






bash does not read startup scripts on some machines

2009-04-23 Thread Justin

Hello,

I am using a command line ssh tool called qtssh on windows to connect to 
a redhat server.  qtssh is a command line ssh tool built upon putty that 
is included with the visualization toolkit VisIt.  This tool is designed 
to run commands remotely and does not create an interactive shell.  When 
connecting to the redhat server none of my startup scripts appear to be 
executed (.bashrc, .bash_profile, .profile, etc).  However, if I connect 
to my Debian server the .bashrc file is sourced just fine.  From what I 
can tell ssh is starting a non-interactive and non-login shell.  The 
documentation on what is executed when this type of shell is encountered 
says:  'When  bash  is  started  non-interactively,  to run a shell 
script, for example, it looks for the variable BASH_ENV in the 
environment, expands its value if it appears there, and uses the 
expanded value as the name of a file to read and execute.'  This 
variable is not set on any of the machines i'm on and it is not clear 
how to appropriately set this variable.  Am I correct in assuming that 
this variable needs to be set in order to get the dot files sourced and 
if so where is this variable set?


Thanks,
Justin