ng that an exxplanation about the interactive vs
non-interactive behaviour might be useful.
Cheers, Ben
signature.asc
Description: PGP signature
Cheers,
Ben
signature.asc
Description: PGP signature
implement
something akin to 'make -j' in bash. Make will stop if any of the
child processes fail.
Cheers, Ben
signature.asc
Description: PGP signature
other one is started immediately. If I start (say) 10
processes and then wait on the first, I may have chosen the longest
running process.
Ben
signature.asc
Description: PGP signature
of the available
(terminated) processes. If there are multiple, they can be collected
by calling wait -n multiple times or calling wait without '-n'.
Ben
Hello,
bash-4.4 doesn't build with --enable-static-link. Buidling with an
additional --without-bash-malloc makes it work.
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64/libc.a(malloc.o):
In function `free':
(.text+0x5f20): multiple definition of `free'
Hello,
using bash-4.4, setting PS0 to '\[\033[1;36m\]started at
\t\[\033[0m\]\n' makes it output PS0 with a non-printable \x01\x02
prefix and suffix.
01 02 73 74 61 72 74 65 64 20 61 74 20 30 33 3a |..started at 03:|
0010 31 38 3a 30 37 01 02 0a
]}; do echo; done
fi
done
--
Best regards,
--
Ben Okopnik
Colin McEwan colin.mce...@gmail.com writes:
I frequently find myself these days writing shell scripts, to run on
multi-core machines, which could easily exploit lots of parallelism (eg. a
batch of a hundred independent simulations).
The basic parallelism construct of '' for async execution
the last
write. Unfortunately, there's no such thing in stdio.
That sounds like a bad design for a log file anyhow. Log entries
should get flushed quickly, otherwise you lose the last few log
entries before a segfault or signal and have fewer clues about
the cause.
--
Ben Pfaff
http
of time to use git mv if some other
way is easier.
--
Ben Pfaff
http://benpfaff.org
difficult.
Thanks,
Ben.
--
Ben Pfaff
http://benpfaff.org
On Feb 27, 2009, at 4:02 PM, Chet Ramey wrote:
Ben wrote:
I ran into a problem using process substitution
This will be fixed in the next version.
thank you!
``The lyf so short, the craft so long to lerne.'' - Chaucer
i've noticed
I ran into a problem using process substitution. A much reduced
version is
show below. The function f2 has the problem, the function f1 does
not. Are
there is some facts about the life cycle of the files created by
process substitution I don't appreciate? - ben
bash-3.2$ ls -l /tmp/foo
it was ^C'd (as you would
do when you realised you'd inadvertently catted or sedded a 3GB binary
file) that I'd report it.
Ben
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'
There is an error on line 29 of variables.c in bash-3.1.
It should read:
#include sys/netmgr.h
not
#include sy/netmgr.h
Attached is a patch that fixes this, although it would be easier to
fix it manually.
Ben
--- bash-3.1/variables.c2005-11-12 20:22:37.0 -0600
+++ bash-3.1.orig
bash version 3.0 crashes with a segmentation fault when running this
script:
#!/bin/bash
# Running this script crashes bash version 3.0 (and 2.05b.0(1))
function foo
{
local w
local c
c=([EMAIL PROTECTED] and stuff)
echo [EMAIL PROTECTED]
}
this request is feasible. :)
Thanks,
Ben Horowitz
P.S. Here is version information - it is possible that this feature
has been added to a newer version of bash than I have:
$ bash --version
GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc
19 matches
Mail list logo