Re: functions can be created with dotted name but not removed

2009-12-04 Thread Chet Ramey
Michael O'Donnell wrote: > Bash Version: 4.0 > Patch Level: 28 > Release Status: release > > Description: > > A bash function with a dot in its name can be created and used with no > problems but cannot be removed - the "unset" command chokes on the name. It's true -- the shell allows you to de

Re: Options for IPC between bash processes under cygwin

2009-12-04 Thread Jon Seymour
Oh, cool. Thanks for correcting me! jon. On Sat, Dec 5, 2009 at 11:54 AM, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Jon Seymour on 12/4/2009 4:00 PM: >> On Linux or any reasonable OS, I could do this remote dispatch easily >> with named pipes, but these

Re: Options for IPC between bash processes under cygwin

2009-12-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jon Seymour on 12/4/2009 4:00 PM: > On Linux or any reasonable OS, I could do this remote dispatch easily > with named pipes, but these don't exist on cygwin. That's where you're wrong. Named pipes DO exist on cygwin, although there are

Re: functions can be created with dotted name but not removed

2009-12-04 Thread DennisW
On Dec 4, 9:25 am, "Michael O'Donnell" wrote: > 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' > -DC

Options for IPC between bash processes under cygwin

2009-12-04 Thread Jon Seymour
I'd like to dispatch commands from one light-weight bash process to a longer running bash process which takes longer to initialize [ I have a _big_ library of bash functions ]. On Linux or any reasonable OS, I could do this remote dispatch easily with named pipes, but these don't exist on cygwin.

Re: functions can be created with dotted name but not removed

2009-12-04 Thread pk
Michael O'Donnell wrote: > A bash function with a dot in its name can be created and used with no > problems but cannot be removed - the "unset" command chokes on the name. > > > Repeat-By: > > This sequence yields the expected results: > > function f() { echo $FUNCNAME ; } > f > u

output redirection with process substitution asynchronous?

2009-12-04 Thread pjodrr
Hello, how can I prefix every line of output of some command with a timestamp? I thought like this: $ exec 3> >(while read line; do echo "$(date): $line"; done) $ seq 4 >&3 Friday, December 4, 2009 4:20:29 PM MET: 1 $ Friday, December 4, 2009 4:20:29 PM MET: 2 Friday, December 4, 2009 4:20

functions can be created with dotted name but not removed

2009-12-04 Thread Michael O'Donnell
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='

functions can be created with dotted name but not removed

2009-12-04 Thread Michael O'Donnell
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='

RFC: Letting bash print an XML syntax dump

2009-12-04 Thread jens . schmidt35
Hi, bash folks, for a larger shell-based project I wanted to have definit answers to questions like - are all redirections to log handle 3 done when the log handle is actually open? - are all calls to grep handled properly (either return value or output ignored)? - are all calls to exit valid?

Re: output redirection with process substitution asynchronous?

2009-12-04 Thread DennisW
On Dec 4, 12:58 pm, pk wrote: > pjodrr wrote: > > Hello, > > > how can I prefix every line of output of some command with a > > timestamp?  I thought like this: > > > $ exec 3> >(while read line; do echo "$(date): $line"; done) > > $ seq 4 >&3 > > Friday, December  4, 2009  4:20:29 PM MET: 1 > > $

Re: output redirection with process substitution asynchronous?

2009-12-04 Thread pk
pjodrr wrote: > Hello, > > how can I prefix every line of output of some command with a > timestamp? I thought like this: > > $ exec 3> >(while read line; do echo "$(date): $line"; done) > $ seq 4 >&3 > Friday, December 4, 2009 4:20:29 PM MET: 1 > $ Friday, December 4, 2009 4:20:29 PM MET:

Re: output redirection with process substitution asynchronous?

2009-12-04 Thread DennisW
On Dec 4, 9:28 am, pjodrr wrote: > Hello, > > how can I prefix every line of output of some command with a > timestamp?  I thought like this: > > $ exec 3> >(while read line; do echo "$(date): $line"; done) > $ seq 4 >&3 > Friday, December  4, 2009  4:20:29 PM MET: 1 > $ Friday, December  4, 2009