Re: bash build

2012-06-02 Thread Clark WANG
On Sat, Jun 2, 2012 at 7:39 AM, rac8006 wrote: > > What is the proper way to add popd pushd dirs etc to bash.  When I currently > build bash these By default those commands should be enabled. I never added special options when buidling Bash. Not sure if it's system dependent. But from the "config

.bashrc is sourced even for non-interactive shells (when run from sshd)

2012-06-02 Thread Mikel Ward
bash sources .bashrc even for some non-interactive shells. For example with echo \$- is $- in ~/.bashrc, and shell set to /bin/bash (bash 4.2.28) ssh -n -T localhost true produces the output $- is hBc I assume this is caused by this code in shell.c if (run_by_ssh || isnetco

Re: .bashrc is sourced even for non-interactive shells (when run from sshd)

2012-06-02 Thread Pierre Gaston
On Sat, Jun 2, 2012 at 8:15 PM, Mikel Ward wrote: > bash sources .bashrc even for some non-interactive shells. > > For example with > >    echo \$- is $- > > in ~/.bashrc, and shell set to /bin/bash (bash 4.2.28) > >    ssh -n -T localhost true > > produces the output > >    $- is hBc > > I assume

Re: .bashrc is sourced even for non-interactive shells (when run from sshd)

2012-06-02 Thread Mikel Ward
Apologies. It's mentioned a few paragraphs further down. Can I suggest a change? How about instead of: When an interactive shell that is not a login shell is started something like: When a shell is started that is not a login shell, but is either an interactive shell or a networ

Re: .bashrc is sourced even for non-interactive shells (when run from sshd)

2012-06-02 Thread Mikel Ward
On Sat, Jun 2, 2012 at 10:19 AM, Pierre Gaston wrote: > On Sat, Jun 2, 2012 at 8:15 PM, Mikel Ward wrote: >> bash sources .bashrc even for some non-interactive shells. ... > "Remote non login non interactive shells" > Bash has a special compile time option that will cause it to source > the .bash

Re: .bashrc is sourced even for non-interactive shells (when run from sshd)

2012-06-02 Thread Pierre Gaston
On Sat, Jun 2, 2012 at 8:24 PM, Mikel Ward wrote: > On Sat, Jun 2, 2012 at 10:19 AM, Pierre Gaston > wrote: >> On Sat, Jun 2, 2012 at 8:15 PM, Mikel Ward wrote: >>> bash sources .bashrc even for some non-interactive shells. > ... >> "Remote non login non interactive shells" >> Bash has a specia

link problem undefined reference tgoto BC & UP

2012-06-02 Thread rac8006
Why can't I get a clean compile of bash4.1? I was building until I did a configure --enable_progcomp Now it fails with the three missing symbols tgoto , BC and UP. I've searched this site with no answers. Searched the web found references to -ltinfo. But I don't have that library. What do I ne

Re: link problem undefined reference tgoto BC & UP

2012-06-02 Thread Pierre Gaston
On Sat, Jun 2, 2012 at 8:55 PM, rac8006 wrote: > > Why can't I get a clean compile of bash4.1?  I was building until I did a > configure --enable_progcomp > Now it fails with  the three missing symbols tgoto , BC and UP.  I've > searched this site with no answers. > Searched the web found referenc

Re: link problem undefined reference tgoto BC & UP

2012-06-02 Thread rac8006
I think I fixed my problem. I compiled the ncurses library from the source code for the DNS-323 NAS. I used it to link bash. RAC Pierre Gaston wrote: > > On Sat, Jun 2, 2012 at 8:55 PM, rac8006 wrote: >> >> Why can't I get a clean compile of bash4.1?  I was building until I did a >> configure

Re: .bashrc is sourced even for non-interactive shells (when run from sshd)

2012-06-02 Thread Linda Walsh
Pierre Gaston wrote: On Sat, Jun 2, 2012 at 8:24 PM, Mikel Ward wrote: On Sat, Jun 2, 2012 at 10:19 AM, Pierre Gaston wrote: On Sat, Jun 2, 2012 at 8:15 PM, Mikel Ward wrote: bash sources .bashrc even for some non-interactive shells. ... "Remote non login non interactive shells" Bash h

Re: .bashrc is sourced even for non-interactive shells (when run from sshd)

2012-06-02 Thread Pierre Gaston
On Sun, Jun 3, 2012 at 3:05 AM, Linda Walsh wrote: > > > Pierre Gaston wrote: > >> On Sat, Jun 2, 2012 at 8:24 PM, Mikel Ward wrote: >>> >>> On Sat, Jun 2, 2012 at 10:19 AM, Pierre Gaston >>> wrote: On Sat, Jun 2, 2012 at 8:15 PM, Mikel Ward wrote: > > bash sources .bashrc eve

lib/sh/mktime.c VMS specific code is not needed.

2012-06-02 Thread John Malmberg
The lib/sh/mktime.c module has a VMS specific include of to pick up time_t. On VMS, the time_t type is defined in the module. So this VMS specific include can be removed. Regards, -John