Re: improper bashrc sourcing with closed stdin

2016-02-21 Thread Chet Ramey
On 2/20/16 4:25 AM, Andrew Gregory wrote: > Bash Version: 4.3 > Patch Level: 42 > Release Status: release > > Description: > If run non-interactively with stdin closed and SHLVL=0, bash will > source ~/.bashrc, due to run_startup_files() thinking that bash is > being run by rshd. > >

improper bashrc sourcing with closed stdin

2016-02-20 Thread Andrew Gregory
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/local