Re: Conditional Regexp matching problem in 3.2

2007-01-19 Thread Kevin F. Quinn
On Fri, 19 Jan 2007 00:56:03 -0600 (CST) [EMAIL PROTECTED] wrote: > # run this, eh? > DOG="Dog name - 01 - Wiggles" > if [[ $DOG =~ "([[:alpha:][:blank:]]*)- ([[:digit:]]*) - > (.*)$" ]] then > echo Dog ${BASH_REMATCH[2]} is ${BASH_REMATCH[3]} > fi You can actuall

Re: Help on Bash - Windows, Setting directories for cygwin

2007-01-19 Thread Chet Ramey
Weasel F. Subs wrote: > I've recently reinstalled cygwin (downloaded the packages on December > 19), with bash as one of the packages, but I'm no longer able to read > the directories such has "/home", "/usr", "/bin" and the like. > Example: > >bash-3.2$ cd /home >bash: cd: /home: No such

Re: `builtin test -a foo` VS `builtin test ! -a foo`

2007-01-19 Thread Chet Ramey
Name withheld by request wrote: > So > builtin test ! -a foo > is equivalent to > true > ie it's not very useful, what is it I'm missing, why is this not a bug? Read the Bash FAQ, question E1. The operation of test is based on the number of arguments supplied. The precedence levels are exp

Conditional Regexp matching problem in 3.2

2007-01-19 Thread rew
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/local/share/locale' -DPACKA

`builtin test -a foo` VS `builtin test ! -a foo`

2007-01-19 Thread Name withheld by request
In article <[EMAIL PROTECTED]>, Name withheld by request <[EMAIL PROTECTED]> wrote: >In bash the built-in 'test' command can act either as "and", >or as a test for file existence: > > ~ $ help test|grep -e -a > -a FILETrue if file exists. > EXPR1 -a EXPR2 True if both exp

[Fwd: Extrange behavior]

2007-01-19 Thread Jordi Prats
Sorry, I didn't include the configuration information: Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_6

Extrange behavior

2007-01-19 Thread Jordi Prats
Hi all, I found a extrange behavior on bash in several machines: [EMAIL PROTECTED] ~ $ [EMAIL PROTECTED] ~ $ cd // [EMAIL PROTECTED] // $ pwd // [EMAIL PROTECTED] // $ echo $PWD // [EMAIL PROTECTED] // $ /bin/pwd / [EMAIL PROTECTED] // $ bash --version GNU bash, version 3.00.16(1)-release (x86_64-

Solaris getcwd() implementation vs BASH

2007-01-19 Thread Petr Sumbera
Hi All, Solaris doesn't implement getcwd() with support for dynamic allocation of memory. This BASH consider as broken so that configure defines GETCWD_BROKEN. Later in bash-3.2/config-bot.h it disables HAVE_GETCWD completely: /* If we have a getcwd(3), but it calls popen(), #undef HAVE_GETC

Help on Bash - Windows, Setting directories for cygwin

2007-01-19 Thread Weasel F. Subs
I've recently reinstalled cygwin (downloaded the packages on December 19), with bash as one of the packages, but I'm no longer able to read the directories such has "/home", "/usr", "/bin" and the like. Example: bash-3.2$ cd /home bash: cd: /home: No such file or directory Is there a way