Re: -d option not working. . .?

2007-09-12 Thread Pierre Gaston
On 9/12/07, Michael Williams <[EMAIL PROTECTED]> wrote: > Forgive me for saying so, and please appreciate both the sarcasm and > irony, but I've never been one for "that's the way it's always > been". I mean, if we all thought that way, we'd be a bunch of > bloodletting flat-earthers. . .no? ;)

Bug#442077: su + ssh + false kills $PPID?

2007-09-12 Thread Dan Jacobson
Package: openssh-client Version: 1:4.6p1-5 Severity: normal File: /usr/bin/ssh Why does this script not finish, only when using su, and only when using ssh? # cat script su my_username_here <<\EOEOE set -x echo $- #no -e here, see remote=my.remote.host.here false ssh $remote false #Why does this

Re: bash scripting help

2007-09-12 Thread Stephane CHAZELAS
2007-09-12, 10:00(-07), chitti: > > I need to seperate the UDP and TCP ports from the /etc/services files. > any pointers or help on scripting this in bash would be helpful > thanks awk ' NF == 0 || $1 ~ /^#/ {next} $2 ~ /\/tcp$/ {print > "services.tcp"; next} $2 ~ /\/udp$/ {print > "service

Re: bash scripting help

2007-09-12 Thread Bob Proulx
chitti wrote: > I need to seperate the UDP and TCP ports from the /etc/services files. > any pointers or help on scripting this in bash would be helpful Open ended questions such as that are not the greatest way to get going. It is better if you read one of the many tutorials and howtos that are

Re: time builtin handles backgrounding poorly

2007-09-12 Thread Jan Schampera
Jack Lloyd wrote: Description: The time builtin seems to be confused if something is backgrounded, and prints immediately the time rather than waiting for the job to complete. I found this very unexpected. Repeat-By: $ time sleep 5 # hit C-Z to stop the job before 5 se

bash scripting help

2007-09-12 Thread chitti
I need to seperate the UDP and TCP ports from the /etc/services files. any pointers or help on scripting this in bash would be helpful thanks -- View this message in context: http://www.nabble.com/bash-scripting-help-tf4430729.html#a12639912 Sent from the Gnu - Bash mailing list archive at Nabbl

time builtin handles backgrounding poorly

2007-09-12 Thread Jack Lloyd
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-redhat-linux-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDI

Re: Wrong input confuses bash's arithmetic unit permanently

2007-09-12 Thread Enrico Scholz
"Chris F.A. Johnson" <[EMAIL PROTECTED]> writes: >> $ let tmp="foo.a"+0 >> $ let ++i >> $ echo $i >> 0 >I agree that it is a bug, but it is one that will never bother me >because I always use the POSIX arithmetic syntax: happens there too: $ : $(( tmp=foo.a+0 )) bash: tmp=foo.a+0 : synta

Re: -d option not working. . .?

2007-09-12 Thread Michael Williams
Two words: history and POSIX. It's been done that way for more than 20 years, so it was standardized that way. Changing it would break too many existing scripts. Forgive me for saying so, and please appreciate both the sarcasm and irony, but I've never been one for "that's the way it's

Re: -d option not working. . .?

2007-09-12 Thread Bob Proulx
Eric Blake wrote: > According to Michael Williams on 9/12/2007 4:06 AM: > > Being that I'm not a bash (or any other shell for that matter) guru, is > > there any reason that parsing occurs this way? Why is it not more like > > other programming languages? > > Two words: history and POSIX. It's b

Re: -d option not working. . .?

2007-09-12 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Michael Williams on 9/12/2007 4:06 AM: > Being that I'm not a bash (or any other shell for that matter) guru, is > there any reason that parsing occurs this way? Why is it not more like > other programming languages? Two words: history a

Re: -d option not working. . .?

2007-09-12 Thread Michael Williams
On Sep 12, 2007, at 2:56 AM, Bob Proulx wrote: The [ is a shell builtin, not a shell metacharacter. Shell metacharacters do not need to be separated by whitespace but the test program needs to be apart or it won't be parsed right. That is why you are seeing "[-d" not found. It is not a paren

INIT: Id "s0" respawning too fast: disabled for 5 minutes

2007-09-12 Thread Christian Boon
Hi, i updated bash-3.2 to patch level 25 and i get the following error: INIT: Entering runlevel: 1 INIT: Id "s0" respawning too fast: disabled for 5 minutes INIT: no more processes left in this runlevel my inittab entry is: s0:123:respawn:/sbin/getty -L -n -l /bin/bash ttyS0 115200 linux gett

Re: Wrong input confuses bash's arithmetic unit permanently

2007-09-12 Thread Chris F.A. Johnson
On 2007-09-11, Enrico Scholz wrote: > 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-redhat-linux-gnu' > -DCONF_VEN