Re: For loop prints two $values instead of one

2014-01-07 Thread Greg Wooledge
On Tue, Jan 07, 2014 at 12:45:42AM +0200, DanielB wrote: > declare -a array=( 'sf052' 'to060' 'pw' 'qb099' 'pw22' 'wp039' 'wx12' > 'wx11' )for subD in "${array[@]}"; do > echo $subDdone > > output: > > sf052 > to060 > pw > qb099 pw22 > wp039 wx12 > wx11 I can only guess that your terminal is

Re: Parameter Substitution Causing Memory Leak

2014-01-07 Thread Chet Ramey
On 1/7/14, 2:27 AM, toddbst...@gmail.com wrote: > Repeat-By: > These can all be demonstrated by running a script consisting of an > infinite loop which repeatedly executes any command utilizing any of the > above examples. Like this: > > #!/bin/bash > > while

Re: Parameter Substitution Causing Memory Leak

2014-01-07 Thread Todd B. Stein
These bugs result in gradual slowdown of indefinitely-running scripts which rely on parameter substitution (rather than forking sed or awk) for speed and efficiency. Forgive me if I used the wrong terminology, but whether these bugs are considered honest-to-goodness "memory leaks" by valgrind seems

Re: Parameter Substitution Causing Memory Leak

2014-01-07 Thread Yuri
On 01/07/2014 12:18, Todd B. Stein wrote: These bugs result in gradual slowdown of indefinitely-running scripts which rely on parameter substitution (rather than forking sed or awk) for speed and efficiency. Forgive me if I used the wrong terminology, but whether these bugs are considered honest-

Re: Parameter Substitution Causing Memory Leak

2014-01-07 Thread Chet Ramey
On 1/7/14, 3:18 PM, Todd B. Stein wrote: > These bugs result in gradual slowdown of indefinitely-running scripts which > rely on parameter substitution (rather than forking sed or awk) for speed > and efficiency. Forgive me if I used the wrong terminology, but whether > these bugs are considered ho

print float number

2014-01-07 Thread lina
Hi, How can I print the 0.05, 0.10 ... 1.0 out, with the step of 0.05 Thanks ahead for your suggestions,

Re: print float number

2014-01-07 Thread Bob Proulx
Hi lina, lina wrote: > How can I print the 0.05, 0.10 ... 1.0 out, with the step of 0.05 > > Thanks ahead for your suggestions, First please do not hijack threads. You replied to Chris Down's message responding to DanielB about "For loop prints two $values instead of one" and then changed the s