Dang---you're right of course. Didn't test the error case...too used to perl.
That's why I drag myself through shell scripts trying to do things I
might be tempted to do in perl...*sigh*
probably have to resort to a else block, running Error, then
returning the status, i.e.:
---
else
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Chen (陈) Jun (军) on 1/27/2008 11:01 PM:
| Hi, everyone,
|
| I'm new to this list. I'd like to ask is there a Windows native port of
| Bash or Bourne Shell?
Yes. Search for the MSYS project (layered on top of mingw). If it
doesn't work
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' -DLOCALEDIR='/usr/share/locale'
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-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale'
Hi, bash!
Sometimes, (like in a source directory), I want to ls files whose name
begins with a capital letter, and so do this:
% ls [A-Z]*
. Sadly, ls ignores my intentions and undiscerningly prints a list of
all files whose names begin with a letter, big or small.
Yes, I've read the fine
Eric Blake wrote:
According Alan Mackenzie:
| % ls [A-Z]*
| . Sadly, ls ignores my intentions and undiscerningly prints a list of
| all files whose names begin with a letter, big or small.
Actually, it follows your (unintended) directions, thanks to your current
locale, which does a
On Jan 28, 2008 4:00 AM, Linda Walsh [EMAIL PROTECTED] wrote:
I was wondering -- in the bash substitute commands ${..%%|##|//} etc,
is there a way to capture a subexpression, so that I can
use the subexpression in the replacement string so I can
end up 'only' with the the subexpression?
I
On Jan 29, 2008 9:32 AM, 龙海涛 [EMAIL PROTECTED] wrote:
$ bash -ce '(false;echo foo);echo bar'
bar
could i ask what the command line option '-e' mean?
i did not find any explanation in bash's manual.
It has the same effect as set -e, you can pass the options of set to
bash directly bash -x