bash4 --disable-aliases

2009-06-16 Thread BuraphaLinux Server
For bash, I normally build a rescue shell using the option --disable-alias When testing bash 4.0 with patches 001 through 024 applied, and this configure: ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --libdir=/lib \ --sbindir=/sbin \ --bindir=/bin \ --mandir=/usr/man \ --infod

Re: Cannot process scripts beyond an embedded NULL character when running in 'source' mode

2009-06-16 Thread Roman Rakus
On 06/02/2009 01:33 PM, Roman Rakus wrote: When you are sourcing bash script, which contains \0 character, bash thinks it is end of file. I have investigated, that `source' loads entire file into memory as string. Then \0 is end of this string. One of the possible solution is to left out all \0

error building bash-4.0 on Interix/SFU/SUA (MP_RMDOT undeclared, just missing some #includes)

2009-06-16 Thread Jay
/src/bash-4.0/lib/sh/getcwd.c: In function `_path_checkino': /src/bash-4.0/lib/sh/getcwd.c:80: error: `MP_RMDOT' undeclared (first use in thi s function) /src/bash-4.0/lib/sh/getcwd.c:80: error: (Each undeclared identifier is reported only once /src/bash-4.0/lib/sh/getcwd.c:80: error: for each fu

RE: error building bash-4.0 on Interix/SFU/SUA (MP_RMDOT undeclared, just missing some #includes)

2009-06-16 Thread Jay
I don't have it handy now but I think bash also had a struct timezone undefined, needed CFLAGS=-D_ALL_SOURCE to get it. - Jay From: jay.kr...@cornell.edu To: bug-bash@gnu.org Subject: error building bash-4.0 on Interix/SFU/SUA (MP_RMDOT undeclared, just missing some #includes) Date: Tu

Re: bashbug chooses wrong $EDITOR executable

2009-06-16 Thread Chet Ramey
Villeneuve wrote: > Fix: > Do not prepend system paths in front of PATH in the bashbug script. > Instead, these default paths could be appended to PATH if necessary. To do otherwise is a potential security hole. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer C

Re: bashbug chooses wrong $EDITOR executable

2009-06-16 Thread Bob Proulx
Chet Ramey wrote: > Villeneuve wrote: > > > Fix: > > Do not prepend system paths in front of PATH in the bashbug script. > > Instead, these default paths could be appended to PATH if necessary. > > To do otherwise is a potential security hole. It seems okay to leave PATH alone to me. Wh

Re: Inconsistent results when history -s is used within PROMPT_COMMAND

2009-06-16 Thread Chet Ramey
dennis wrote: > Configuration Information [Automatically generated, do not change]: > Machine: i486OS: linux-gnuCompiler: gccCompilation CFLAGS: > -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' > -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' > -DLOCALEDIR='/usr/share

Re: bashbug chooses wrong $EDITOR executable

2009-06-16 Thread Chet Ramey
Bob Proulx wrote: > Chet Ramey wrote: >> Villeneuve wrote: >> >>> Fix: >>> Do not prepend system paths in front of PATH in the bashbug script. >>> Instead, these default paths could be appended to PATH if necessary. >> To do otherwise is a potential security hole. > > It seems okay to leav