Re: time builtin handles backgrounding poorly

2007-09-13 Thread Chet Ramey
Jack Lloyd wrote: > 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' > -D

Re: Process Substitution backgrounds the command list?

2007-09-13 Thread Chet Ramey
Bob Proulx wrote: > I am confused by the order of operations of this following: > > $ { echo hello world | tee >(md5sum 1>&2) ;} ; echo goodbye > hello world > goodbye > $ 6f5902ac237024bdd0c176cb93063dc4 - > > Shouldn't bash wait for the subprocess finish before the next command > is in

Re: bash 3.2.9, constructing array references with indirect expansion

2007-09-13 Thread Chet Ramey
Misfortunado Farmbuyer wrote: > I've been staring at Chet's message in > http://www.mail-archive.com/bug-bash@gnu.org/msg01545.html > for a while, and now I understand why my own script (doing something > similar) was not originally working. What I can't quite figure is what > to change. > > I'm

Re: TAB strips wildcards

2007-09-13 Thread Chet Ramey
[EMAIL PROTECTED] wrote: > Here is a true case of what happens when you hit TAB with a wildcard: > $ shar /tmp/logs/*/*/* > access.log access.log > $ shar /tmp/logs/ > Yes, it strips the wildcards! Yes, it does. Readline completion replaces the word on which completion is attempted with the long

Re: Newbie question

2007-09-13 Thread Matthew Woehlke
chitti wrote: Can anyone tell me how to find identify all suid and sgid programs, display their name, permission, time stapms and size, et. al in format similar to the output of shell command "ls" in the following directory /usr/bin and /usr/ucb many thanks You're on the wrong forum, as this qu

Re: bash scripting help

2007-09-13 Thread chitti
thank you very much Stephane CHAZELAS-3 wrote: > > 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$

Newbie question

2007-09-13 Thread chitti
Can anyone tell me how to find identify all suid and sgid programs, display their name, permission, time stapms and size, et. al in format similar to the output of shell command "ls" in the following directory /usr/bin and /usr/ucb many thanks -- View this message in context: http://www.nabble.