Re: status on $[arith] for eval arith vsl $((arith))??

2012-04-07 Thread Chet Ramey
On 4/7/12 4:45 PM, Linda Walsh wrote: > > > > In modifying some released code on my distro,I ran into the extensive use > of $[arith] as a means for returning arithmetic evaluations of the > expression. > > I vaguely remember something like that from years ago, but never see any > refere

Re: status on $[arith] for eval arith vsl $((arith))??

2012-04-07 Thread Pierre Gaston
On Sun, Apr 8, 2012 at 12:50 AM, Linda Walsh wrote: > > > Mike Frysinger wrote: > >> On Saturday 07 April 2012 16:45:55 Linda Walsh wrote: >>> >>> Is it an accidental omission from the bash manpage? >> >> >> it's in the man page.  read the "Arithmetic Expansion" section. >> -mike > > > > > My

Re: status on $[arith] for eval arith vsl $((arith))??

2012-04-07 Thread Linda Walsh
Mike Frysinger wrote: On Saturday 07 April 2012 16:45:55 Linda Walsh wrote: Is it an accidental omission from the bash manpage? it's in the man page. read the "Arithmetic Expansion" section. -mike My 4.2 manpage says: Arithmetic Expansion Arithmetic expansion allows the

Re: status on $[arith] for eval arith vsl $((arith))??

2012-04-07 Thread Mike Frysinger
On Saturday 07 April 2012 16:45:55 Linda Walsh wrote: > Is it an accidental omission from the bash manpage? it's in the man page. read the "Arithmetic Expansion" section. -mike signature.asc Description: This is a digitally signed message part.

status on $[arith] for eval arith vsl $((arith))??

2012-04-07 Thread Linda Walsh
In modifying some released code on my distro,I ran into the extensive use of $[arith] as a means for returning arithmetic evaluations of the expression. I vaguely remember something like that from years ago, but never see any reference to it -- yet it works, and old code seems to r

Re: semicolon at beginning of line

2012-04-07 Thread Linda Walsh
Elliott Forney wrote: I wish bash would happily execute lines that begin with a semicolon, i.e., treat it as a no-op followed by a command. The following examples come to mind: $ infloop& echo hello hello $ infloop&; echo hello bash: syntax error near unexpected token `;' $ echo hello; ec

semicolon at beginning of line

2012-04-07 Thread Elliott Forney
I wish bash would happily execute lines that begin with a semicolon, i.e., treat it as a no-op followed by a command. The following examples come to mind: $ infloop& echo hello [2] 11361 hello $ infloop&; echo hello bash: syntax error near unexpected token `;' $ echo hello; echo world hello worl