Re: ${!vname} not documented

2009-10-05 Thread Mikel Ward
Mike Frysinger wrote: > Mikel Ward wrote: > > I was unfamiliar with ${!VAR}. As far as I can tell, it's not documented > > in the man page or the info pages. > > either your documentation is out of date (old bash install) or you just > missed > it. it's under Parameter Expansion. > -mike Ah,

Re: ${!vname} not documented

2009-10-05 Thread Mike Frysinger
On Monday 05 October 2009 23:05:41 Mikel Ward wrote: > I was unfamiliar with ${!VAR}. As far as I can tell, it's not documented > in the man page or the info pages. either your documentation is out of date (old bash install) or you just missed it. it's under Parameter Expansion. -mike signat

${!vname} not documented

2009-10-05 Thread Mikel Ward
Hi I came across a script that did $ VARIABLE1=value1 $ VARIABLE2=value2 $ for VAR in VARIABLE1 VARIABLE2 > do > echo ${VAR}=${!VAR} > done VARIABLE1=value1 VARIABLE2=value2 I was unfamiliar with ${!VAR}. As far as I can tell, it's not documented in the man page or the info pages. I assume it

Re: redirection after braced block

2009-10-05 Thread clemens fischer
Matthew Woehlke wrote: >>> clemens fischer writes: >>> I have the following construct in a script: ... a number of commands { ... a number of commands } 2>&1 | ${prog_log} "${logfile}" It seems anything inside the braces is not seen by bash, and

Re: ulimit and ssh?

2009-10-05 Thread Bob Proulx
peter360 wrote: > Thanks Adreas. That was what I suspected in my reply to Bob. But Bob > disagreed. Looks like there were some confusion about this feature even > among experts. Seems another reason to deprecate the feature. I don't think anything I said disagreed with what Andreas said. It

Re: redirection after braced block

2009-10-05 Thread Chet Ramey
clemens fischer wrote: > I have the following construct in a script: > > ... a number of commands > { > ... a number of commands > } 2>&1 | ${prog_log} "${logfile}" > > It seems anything inside the braces is not seen by bash, and it doesn't > show up in a "sh -x ..." trace, but ${pro

Re: redirection after braced block

2009-10-05 Thread Greg Wooledge
On Mon, Oct 05, 2009 at 07:55:33PM +0200, clemens fischer wrote: > >> { > >> ... a number of commands > >> } 2>&1 | ${prog_log} "${logfile}" > yeah ok, but the commands really are not executed. I have an option > dry-run in the script, which sets "prog_log=true". Then there are > a bun

Re: redirection after braced block

2009-10-05 Thread Matthew Woehlke
clemens fischer wrote: Andreas Schwab wrote: clemens fischer writes: I have the following construct in a script: ... a number of commands { ... a number of commands } 2>&1 | ${prog_log} "${logfile}" It seems anything inside the braces is not seen by bash, and it doesn't show up

Re: redirection after braced block

2009-10-05 Thread clemens fischer
Andreas Schwab wrote: > clemens fischer writes: > >> I have the following construct in a script: >> >> ... a number of commands >> { >> ... a number of commands >> } 2>&1 | ${prog_log} "${logfile}" >> >> It seems anything inside the braces is not seen by bash, and it >> doesn't show u

Re: redirection after braced block

2009-10-05 Thread Andreas Schwab
clemens fischer writes: > I have the following construct in a script: > > ... a number of commands > { > ... a number of commands > } 2>&1 | ${prog_log} "${logfile}" > > It seems anything inside the braces is not seen by bash, and it doesn't > show up in a "sh -x ..." trace, but ${pro

Re: ulimit and ssh?

2009-10-05 Thread peter360
Thanks Adreas. That was what I suspected in my reply to Bob. But Bob disagreed. Looks like there were some confusion about this feature even among experts. Seems another reason to deprecate the feature. -peter Andreas Schwab-2 wrote: > > peter360 writes: > >> That makes sense. So the

redirection after braced block

2009-10-05 Thread clemens fischer
'uname -rims' Linux 2.6.31.1-spott i686 AuthenticAMD 'bash --version' GNU bash, version 4.0.24(1)-release (i686-pc-linux-gnu) I have the following construct in a script: ... a number of commands { ... a number of commands } 2>&1 | ${prog_log} "${logfile}" It seems anything inside th