Re: mtab and /proc/meminfo

2009-10-20 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Victor Hugo Erminpour on 10/20/2009 8:57 PM: > I'm running strace against 2.05b.0(1)-release and I can > see that bash is opening /etc/mtab and /proc/meminfo, > but I can't find any reference to this in the code. Have you considered that

mtab and /proc/meminfo

2009-10-20 Thread Victor Hugo Erminpour
Hello all, I'm running strace against 2.05b.0(1)-release and I can see that bash is opening /etc/mtab and /proc/meminfo, but I can't find any reference to this in the code. Also, this appears when I run bash as "/bin/sh -c ". Here's the strace output: {{{ ... open("/etc/mtab", O_RDONLY)

Wrong links in GNU Bash Manual

2009-10-20 Thread Yecheng Fu
Maybe a format error: "3.6 Redirections" section' subsections all has same 'href' attribute "#Redirections". Found it on http://www.gnu.org/software/bash/manual/bashref.html. -- Yecheng Fu (Cofyc) http://yechengfu.com

set -e in bash 4

2009-10-20 Thread Tobias Poschwatta
In the following test case test1.sh, bash 4 behaves differently from bash 3.1. The behaviour of bash 3.1 is what I would expect to be correct. Is this a bug in bash 4 or an intentional change? Using bash 4: $ /bin/bash --version GNU bash, version 4.0.28(1)-release (x86_64-pc-linux-gnu) Copyright

bug-bash@gnu.org

2009-10-20 Thread Bob Proulx
Sitaram Chamarty wrote: > Cool thanks! Tantalisingly, it also says "nth" arg, but I can't > figure out how to give it that "n" (when n != 1). However, it seems > I can do this with M-. -- I just prefix an M-1 before the > M-. (thought my terminal does get messed up; probably because I have > a ver

Re: Small script that sometimes elicits a memory error

2009-10-20 Thread Chet Ramey
cha...@nas.com wrote: > Configuration Information [Automatically generated, do not change]: > Machine: i486 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' > -DCONF_VENDOR='pc' -DLOCALED