Re: print float number

2014-01-08 Thread Greg Wooledge
On Tue, Jan 07, 2014 at 10:36:54PM -0700, Bob Proulx wrote: > lina wrote: > > How can I print the 0.05, 0.10 ... 1.0 out, with the step of 0.05 Floating point does weird things. A first approach might look like this: awk 'BEGIN {for (i=0.05; i<=1.0; i+=0.05) printf ("%.2f\n", i)}' But when I

BUG: "time" command adding to wrong process.

2014-01-08 Thread James Bonfield
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba

Re: BUG: "time" command adding to wrong process.

2014-01-08 Thread Chet Ramey
On 1/8/14 7:00 AM, James Bonfield wrote: > Bash Version: 4.1 > Patch Level: 5 > Release Status: release > > Description: > If I have a process running in the background that finishes > while I have a foreground process being timed using the > builtin time command, then the CPU t

Re: BUG: "time" command adding to wrong process.

2014-01-08 Thread James Bonfield
On Wed, Jan 08, 2014 at 10:50:47AM -0500, Chet Ramey wrote: > It's more difficult to get timing information for other individual > processes, and changing the code to do that would interfere with the > ability to time builtins and other shell commands. Understood. Perhaps it just needs a line in t

Behavior change/feature : display -p var; where var is a "placeholder" variable

2014-01-08 Thread Peggy Russell
"Placeholder" variables currently can be displayed if they have an attribute (iaArn) (1). Could there be a consideration for a behavior change/feature to display them by name and prefix (2)(3)? For illustration purposes: 1) declare -i var; declare -pi 2) declare -i var; declare -p var 3) d

bash signal trap bug

2014-01-08 Thread Paweł Gołaszewski
Hello, I think I've found bug in signal handling in bash. Look at 2 scripts: http://www.blues.gda.pl/SOURCES/show_logs.sh http://www.blues.gda.pl/SOURCES/show_logs.zsh Both are identical. "zsh" version works fine, "bash" version doesn't. After start everything is fine, a can send _one_ HUP signa

Re: print float number

2014-01-08 Thread lina
On Wednesday 08,January,2014 01:36 PM, Bob Proulx wrote: > 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 ab