Re: bash build

2012-06-04 Thread Greg Wooledge
On Fri, Jun 01, 2012 at 04:39:08PM -0700, rac8006 wrote: What is the proper way to add popd pushd dirs etc to bash. When I currently build bash these are missing. I also get an error libintl_ngettext undefined reference. I can get around this error by adding -lintl to the link. Just

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

2012-06-04 Thread Chet Ramey
On 6/2/12 7:51 PM, John Malmberg wrote: The lib/sh/mktime.c module has a VMS specific include of sys/types.h to pick up time_t. No, it doesn't. VMS systems include stddef.h. On VMS, the time_t type is defined in the time.h module. So this VMS specific include can be removed. So there is

Re: bash build

2012-06-04 Thread rac8006
I've found out How to build bash without errors. I needed to compile ncurses and make the library available. My system is a dns-323 NAS. Thanks for the response. RAC Greg Wooledge wrote: On Fri, Jun 01, 2012 at 04:39:08PM -0700, rac8006 wrote: What is the proper way to add popd pushd

Re: Redirect a backgrounded process' stdout toward COPROC's stdin

2012-06-04 Thread Chet Ramey
On 6/3/12 8:20 AM, Davide Baldini wrote: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -march='i486' (plus the flags added by Makefile) uname output: Linux debianBunker 2.6.26-2-686 #1 SMP Wed Sep 21 04:35:47 UTC 2011 i686 GNU/Linux Machine Type: i486-pc-linux-gnu

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

2012-06-04 Thread Chet Ramey
On 6/3/12 4:25 AM, Pierre Gaston wrote: I thought I was not documented (before 4 it was a bit less obvious to find the relevant bit) that's why I gave the link, but it is in fact documented. Eg in the bash 4 manual: Bash attempts to determine when it is being run with its

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

2012-06-04 Thread Steven W. Orr
On 6/4/2012 9:55 AM, Chet Ramey wrote: That's not exactly it, but the idea is right. isnetconn() (previously issock()) has been around since bash-1.13. If I had to guess, I'd say late August 1992 or 1993. It wasn't inherited from csh. The original requests were along the lines of having

Incorrect mangling of multiline array assignment in history

2012-06-04 Thread Davide Brini
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'

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

2012-06-04 Thread John E. Malmberg
On 6/4/2012 8:05 AM, Chet Ramey wrote: On 6/2/12 7:51 PM, John Malmberg wrote: The lib/sh/mktime.c module has a VMS specific include ofsys/types.h to pick up time_t. No, it doesn't. VMS systems includestddef.h. I see I read it wrong. On VMS, the time_t type is defined in thetime.h

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

2012-06-04 Thread Chet Ramey
On 6/4/12 6:39 PM, John E. Malmberg wrote: So there is nothing instddef.h that VMS requires fortime.h? That is the reason for that code block. That is correct. On VMS, time.h will pull in everything that it needs. Thanks. I also posted on May 12th, that VMS specific code in

Brace expansion infinite loop, memory corruption, and other bugs.

2012-06-04 Thread Scott McMillan
A week or so ago I submitted a bug report using the bashbug command that involved some overflow issues with braces.c on OpenSUSE12.1 X86_64. Browsing the patches, I got the impression that braces.c hasn't been modified since the original 4.2 release, so the same bugs should exist in the most