Re: [bash 4.2] In vi mode, cc failed to change the whole line

2011-02-16 Thread Clark J. Wang
On Thu, Feb 17, 2011 at 12:43 PM, Clark J. Wang wrote: > # ldd /usr/local/bash-4.2.0/bin/bash > linux-gate.so.1 => (0xb773) > libncurses.so.5 => /lib/libncurses.so.5 (0xb76ec000) > libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb76e8000) > libc.so.6 => /lib/i686/c

Re: Do more testing before a release?

2011-02-16 Thread Clark J. Wang
On Thu, Feb 17, 2011 at 1:38 PM, Mike Frysinger wrote: > On Wednesday, February 16, 2011 23:51:16 Clark J. Wang wrote: > > I know little about open source development process (and control?). I > just > > don't know where to get the bash code (like CVS, SVN respository) before > > it's released. I

Re: [bash 4.2] In vi mode, cc failed to change the whole line

2011-02-16 Thread Mun
Hi, On Wed, Feb 16, 2011 at 08:43 PM PST, Clark J. Wang wrote: CJW> For example, in vi insert mode, I first enter a command like this: CJW> CJW> # hello world CJW> CJW> Then I press ESC and type cc, the cursor just moves to the beginning (under CJW> the char `h') and the whole line is not emptie

Re: Do more testing before a release?

2011-02-16 Thread Mike Frysinger
On Wednesday, February 16, 2011 23:51:16 Clark J. Wang wrote: > I know little about open source development process (and control?). I just > don't know where to get the bash code (like CVS, SVN respository) before > it's released. I think it's better to make it open to more people so > everyone can

Do more testing before a release?

2011-02-16 Thread Clark J. Wang
I know little about open source development process (and control?). I just don't know where to get the bash code (like CVS, SVN respository) before it's released. I think it's better to make it open to more people so everyone can help review and test before a stable release. -- Clark

[bash 4.2] In vi mode, cc failed to change the whole line

2011-02-16 Thread Clark J. Wang
For example, in vi insert mode, I first enter a command like this: # hello world Then I press ESC and type cc, the cursor just moves to the beginning (under the char `h') and the whole line is not emptied. If I type more chars after cc, only the first `h' char is replaced and following `ello worl

Re: typeset -r prevents local variable of same name.

2011-02-16 Thread Clark J. Wang
On Thu, Feb 17, 2011 at 11:13 AM, Chet Ramey wrote: > On 2/13/11 3:17 PM, ste...@syslang.net wrote: > > Configuration Information [Automatically generated, do not change]: > > Machine: i386 > > OS: linux-gnu > > Compiler: gcc > > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' > -DCO

Re: Here strings and pathname expansion

2011-02-16 Thread Chet Ramey
On 2/14/11 12:43 AM, Jan Schampera wrote: > Hello world, > > > I recently answered a question about using the asterisk mixed with > redirection and other words. This also lead me to the documentation that > states (REDIRECTION section): > > --- > The word following the redirection operator

Re: typeset -r prevents local variable of same name.

2011-02-16 Thread Chet Ramey
On 2/13/11 3:17 PM, ste...@syslang.net wrote: > Configuration Information [Automatically generated, do not change]: > Machine: i386 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' >

Re: Bash 4.2 printf %()T seems to ignore TZ

2011-02-16 Thread Andreas Schwab
Dennis Williamson writes: > When I ran make test I noticed a discrepancy in a couple of the times > output during the printf tests. I pulled out the relevant section and > this is what I get: > > LC_ALL=C > LANG=C > SECS=1275250155 > export TZ=EST5EDT > printf "%()T\n" $SECS > printf "%(%e-%b-%Y

Re: Bash 4.2 printf %()T seems to ignore TZ

2011-02-16 Thread Dennis Williamson
On Wed, Feb 16, 2011 at 7:22 AM, Greg Wooledge wrote: > On Tue, Feb 15, 2011 at 09:49:16PM -0600, Dennis Williamson wrote: >> SECS=1275250155 >> export TZ=EST5EDT >> printf "%()T\n" $SECS >> printf "%(%e-%b-%Y %T %Z)T\n" $SECS  # added %Z >> >> result: >> >> 15:09:15 >> 30-May-2010 15:09:15 CDT >

Re: Bash 4.2 printf %()T seems to ignore TZ

2011-02-16 Thread Greg Wooledge
On Tue, Feb 15, 2011 at 09:49:16PM -0600, Dennis Williamson wrote: > SECS=1275250155 > export TZ=EST5EDT > printf "%()T\n" $SECS > printf "%(%e-%b-%Y %T %Z)T\n" $SECS # added %Z > > result: > > 15:09:15 > 30-May-2010 15:09:15 CDT I can't duplicate your problem on HP-UX 10.20: imadev:~$ s=12752

[bash 4.2] `declare -g' bug?

2011-02-16 Thread Clark J. Wang
See following script result: bash# cat declare-g.sh #!/bin/bash var=global f1() { declare var=local f2 echo 3.$var } f2() { declare -g var echo 1.$var var=global-changed echo 2.$var } f1 echo 4.$var bash# /usr/local/bash-4.2.0/bin/bash declare-g.sh 1.local 2.globa