Re: tcsh being dodgy, or pipe code ishoos?

2003-06-25 Thread Terry Lambert
John-Mark Gurney wrote: > Tim Kientzle wrote this message on Wed, Jun 25, 2003 at 09:51 -0700: > > Why do exec-ed processes inherit the children of the former > > process, anyway? That doesn't entirely sound right to me. > > Is that behavior mandated by some standard? If not, this > > could argua

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-25 Thread John-Mark Gurney
Tim Kientzle wrote this message on Wed, Jun 25, 2003 at 09:51 -0700: [...] > >Say the shell you run the above command is 10. It will fork to create > >a shell to run the commands in the outter parens. Call this 11. 11's > >job is to run: (echo 2; echo 3) | ./xargs -I% echo +% > >11 will fork/e

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-25 Thread John-Mark Gurney
Tim J. Robbins wrote this message on Wed, Jun 25, 2003 at 19:20 +1000: > On Wed, Jun 25, 2003 at 12:41:51AM -0700, John-Mark Gurney wrote: > > [...] > > So, now the question is, do we fix xargs to deal with unexpected > > children? Or fix the shells in question? (tcsh and zsh seem to suffer > >

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-25 Thread Tim Kientzle
John-Mark Gurney wrote: ok, with some magic ktrace work, I have come up with an more complete answer to the riddle. It's how the shell exec's the processes. The bare cause can be demo'd by: ( ( echo 2 ; echo 3 ) | ./xargs -I% echo + % ) Say the shell you run the above command is 10. It will fo

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-25 Thread Terry Lambert
John-Mark Gurney wrote: > So, now the question is, do we fix xargs to deal with unexpected > children? Or fix the shells in question? (tcsh and zsh seem to suffer > this problem) > > To me, fixing xargs is correct since it prevents another possible > future abusers of this "feature". Fixing the

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-25 Thread Tim J. Robbins
On Wed, Jun 25, 2003 at 12:41:51AM -0700, John-Mark Gurney wrote: [...] > So, now the question is, do we fix xargs to deal with unexpected > children? Or fix the shells in question? (tcsh and zsh seem to suffer > this problem) > > To me, fixing xargs is correct since it prevents another possibl

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-25 Thread John-Mark Gurney
John-Mark Gurney wrote this message on Tue, Jun 24, 2003 at 23:04 -0700: > Ok, I seem to have found out that we are reaping a child that we don't > know about. slightly modified xargs produces this: ok, with some magic ktrace work, I have come up with an more complete answer to the riddle. It's

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-24 Thread John-Mark Gurney
Juli Mallett wrote this message on Wed, Jun 25, 2003 at 00:15 -0500: > * Juli Mallett <[EMAIL PROTECTED]> [ Date: 2003-06-24 ] > [ w.r.t. Re: tcsh being dodgy, or pipe code ishoos? ] > > * Tim Kientzle <[EMAIL PROTECTED]> [ Date: 2003-06-24 ] > > > Hmmm... Th

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-24 Thread Juli Mallett
* Juli Mallett <[EMAIL PROTECTED]> [ Date: 2003-06-24 ] [ w.r.t. Re: tcsh being dodgy, or pipe code ishoos? ] > * Tim Kientzle <[EMAIL PROTECTED]> [ Date: 2003-06-24 ] > > Hmmm... This looks like xargs isn't waiting for the subcommand > > to exit. This lo

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-24 Thread Juli Mallett
* Tim Kientzle <[EMAIL PROTECTED]> [ Date: 2003-06-24 ] [ w.r.t. Re: tcsh being dodgy, or pipe code ishoos? ] > Artem 'Zazoobr' Ignatjev wrote: > > Juli Mallett wrote: > > > >>Anyone with insight into this? > >> > >>([EMAIL PR

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-24 Thread John-Mark Gurney
Tim Kientzle wrote this message on Tue, Jun 24, 2003 at 21:19 -0700: > Artem 'Zazoobr' Ignatjev wrote: > >Juli Mallett wrote: > > > >>Anyone with insight into this? > >> > >>([EMAIL PROTECTED]:~)39% ( echo 1 ; ( ( echo 2 ; echo 3 ) | xargs -I% > >>echo + % ) ) > >>1 > >>+ 2 > >>+ 3 > >>([EMAIL PRO

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-24 Thread Tim Kientzle
Artem 'Zazoobr' Ignatjev wrote: Juli Mallett wrote: Anyone with insight into this? ([EMAIL PROTECTED]:~)39% ( echo 1 ; ( ( echo 2 ; echo 3 ) | xargs -I% echo + % ) ) 1 + 2 + 3 ([EMAIL PROTECTED]:~)40% ( echo 1 ; ( ( echo 2 ; echo 3 ) | xargs -I% echo + % ) ) | cat 1 + +2 3 last cat is not necess

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-24 Thread Makoto Matsushita
jmallett> Anyone with insight into this? "Me Too" with zsh 4.0.6 on 5-current as of early June/2003. -- - Makoto `MAR' Matsushita ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-24 Thread Andrey Chernov
On Tue, Jun 24, 2003 at 18:54:11 -0500, Juli Mallett wrote: > stdout. Where does stderr come into it? Yes I know about TTY races Forget about stderr, it looks like fork race somewhere. Minimal example will be ( ( echo 2 ; echo 3 ) | xargs -I% echo + % ) which outputs + + 3 2 in rare cases.

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-24 Thread Artem 'Zazoobr' Ignatjev
Juli Mallett wrote: > Anyone with insight into this? > > ([EMAIL PROTECTED]:~)39% ( echo 1 ; ( ( echo 2 ; echo 3 ) | xargs -I% echo + % ) ) > 1 > + 2 > + 3 > ([EMAIL PROTECTED]:~)40% ( echo 1 ; ( ( echo 2 ; echo 3 ) | xargs -I% echo + % ) ) | > cat > 1 > + +2 > 3 last cat is not necessary... And

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-24 Thread Juli Mallett
* Andrey Chernov <[EMAIL PROTECTED]> [ Date: 2003-06-24 ] [ w.r.t. Re: tcsh being dodgy, or pipe code ishoos? ] > On Tue, Jun 24, 2003 at 18:35:15 -0500, Juli Mallett wrote: > > Anyone with insight into this? > > > > ([EMAIL PROTECTED]:~)39% ( echo 1 ; ( ( e

Re: tcsh being dodgy, or pipe code ishoos?

2003-06-24 Thread Andrey Chernov
On Tue, Jun 24, 2003 at 18:35:15 -0500, Juli Mallett wrote: > Anyone with insight into this? > > ([EMAIL PROTECTED]:~)39% ( echo 1 ; ( ( echo 2 ; echo 3 ) | xargs -I% echo + % ) ) > 1 > + 2 > + 3 Loks like stdout/stderr mix, but I not check the code, so just raw guess. __

Re: tcsh hang in -current (kse bug?)

2002-10-07 Thread David Malone
On Sun, Oct 06, 2002 at 04:10:55PM -0700, Kris Kennaway wrote: > Can anyone else reproduce this in tcsh? > > rpcgen -s `perl -e 'print "a"x5'` > Word too long. I reported this to the tcsh people about 18 months ago, but I don't think it was ever fixed. David. To Unsubscribe: send m

RE: tcsh hang in -current (kse bug?)

2002-10-06 Thread Riccardo Torrini
On 06-Oct-2002 (23:10:55/GMT) Kris Kennaway wrote: > Can anyone else reproduce this in tcsh? > rpcgen -s `perl -e 'print "a"x5'` > Word too long. Mee too mail. Using {50,500,5000} works, hang only with 5 (not tested with others numbers). Doing: # echo {your_command} print only "word to

Re: tcsh hang in -current (kse bug?)

2002-10-06 Thread Michael Nottebrock
Michael Nottebrock wrote: > Kris Kennaway wrote: > >> Can anyone else reproduce this in tcsh? > > > Yup. My -CURRENT here is two weeks old. ... reproducible in -STABLE, too. Regards, -- Michael Nottebrock "And the reasons? There are no reasons." msg44136/pgp0.pgp Description: PGP sig

Re: tcsh hang in -current (kse bug?)

2002-10-06 Thread Andreas Kohn
On Mon, 2002-10-07 at 01:10, Kris Kennaway wrote: > Can anyone else reproduce this in tcsh? > > rpcgen -s `perl -e 'print "a"x5'` > Word too long. > > And then tcsh will hang in a state unresponsive to signals. > > Kris > Hangs here, too. (this is stable!) FreeBSD klamath.ankon.homeip.ne

Re: tcsh hang in -current (kse bug?)

2002-10-06 Thread Michael Nottebrock
Kris Kennaway wrote: > Can anyone else reproduce this in tcsh? Yup. My -CURRENT here is two weeks old. -- Michael Nottebrock | After years of using email, I'm still to dumb to hit Reply-All | msg44132/pgp0.pgp Description: PGP signature

Re: tcsh

2002-05-20 Thread Giorgos Keramidas
On 2002-05-19 20:34, Riccardo Torrini wrote: > On 19-May-2002 (18:27:40/GMT) Riccardo Torrini wrote: > > > I have "set implicitcd". But it would be honoured only when a > > directory is specified on a line itself, not after a pipe (IMHO). > > Or (even better), when a directory is followed by a "/

Re: tcsh

2002-05-19 Thread Riccardo Torrini
On 19-May-2002 (18:27:40/GMT) Riccardo Torrini wrote: > I have "set implicitcd". But it would be honoured only when a > directory is specified on a line itself, not after a pipe (IMHO). Or (even better), when a directory is followed by a "/" ? Riccardo. To Unsubscribe: send mail to [EMAIL PR

Re: tcsh

2002-05-19 Thread Riccardo Torrini
On 19-May-2002 (18:12:00/GMT) Mark Peek wrote: >>If exists a directory named "sort" tcsh chdir to that dir instead of >>executing sort present in path (and no, I have no "." anywere in path) >>And it also happen with non existent commands: >># pwd >>/usr/src/contrib >># find . -name Makefile | l

Re: tcsh

2002-05-19 Thread Mark Peek
At 6:14 PM +0200 5/19/02, Riccardo Torrini wrote: >If exists a directory named "sort" tcsh chdir to that dir instead of >executing sort present in path (and no, I have no "." anywere in path) > ># pwd >/usr/src/contrib ># find . -name Makefile | sort ># pwd >/usr/src/contrib/sort ># cd .. ># find

Re: tcsh

2002-05-19 Thread Jordan DeLong
On Sun, May 19, 2002 at 06:14:09PM +0200, Riccardo Torrini wrote: > If exists a directory named "sort" tcsh chdir to that dir instead of > executing sort present in path (and no, I have no "." anywere in path) > You probably have the 'implicitcd' option on. -- Jordan DeLong [EMAIL PROTECTED]

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread Christos Zoulas
On Mar 14, 11:24pm, [EMAIL PROTECTED] ("Andrey A. Chernov") wrote: -- Subject: Re: tcsh 6.10.00 echo;echo;echo; bug with fix With the new information about solaris having fixed this, I've decided against keeping compatibility and just applying the fix you proposed. christos |

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread Andrey A. Chernov
On Wed, Mar 14, 2001 at 09:54:32 -0500, Christos Zoulas wrote: > Yeah, that is a good idea. I think that I'll add an echo_style "bsdbug", > and leave the default alone. Even if we left old default in place (which I personally not like), old code have signal handler bug, we can't just "return" fr

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread Andrey A. Chernov
On Wed, Mar 14, 2001 at 18:41:37 +0100, Daniel Rock wrote: > David Malone schrieb: > > > > > echo is more like as external command, even in its internal form it > > > tends to be compatible even with SysV-isms. What non-BSD grown (i.e. SysV) > > > csh echo prints? > > > > Solaris, AIX and HPUX a

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread Daniel Rock
David Malone schrieb: > > > echo is more like as external command, even in its internal form it > > tends to be compatible even with SysV-isms. What non-BSD grown (i.e. SysV) > > csh echo prints? > > Solaris, AIX and HPUX all print nothing. I guess all csh versions > are likely to be BSD dervied

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread Kimmo Suominen
I agree with Andrey -- although this has the possibility of breaking old scripts that expect no output from echoing an empty variable. Since the DEC/OSF system update script only works with their ancient /bin/sh (and not with the XPG4 sh) I wouldn't be surprised to find such scripts out there...

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread Christos Zoulas
On Mar 14, 2:41pm, [EMAIL PROTECTED] (David Malone) wrote: -- Subject: Re: tcsh 6.10.00 echo;echo;echo; bug with fix | > echo is more like as external command, even in its internal form it | > tends to be compatible even with SysV-isms. What non-BSD grown (i.e. SysV) | > csh ec

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread David Malone
> echo is more like as external command, even in its internal form it > tends to be compatible even with SysV-isms. What non-BSD grown (i.e. SysV) > csh echo prints? Solaris, AIX and HPUX all print nothing. I guess all csh versions are likely to be BSD dervied, so there is likely to be a consista

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread Andrey A. Chernov
On Wed, Mar 14, 2001 at 14:10:06 +, David Malone wrote: > Will it change what happens if you do: > > set null="" > echo $null > > (this produces nothing in "traditional" tcsh and csh)? It will change. > I guess we should leave it up to the tcsh folks. There are other > internal

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread David Malone
> Since internal 'echo' does nothing, it _not_ used in any old csh scripts, > while 'echo ""' does the same thing in both old and new variants, so old > scripts will works in the same way. Will it change what happens if you do: set null="" echo $null (this produces nothing in "t

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread Andrey A. Chernov
On Wed, Mar 14, 2001 at 15:46:39 +0300, Andrey A. Chernov wrote: > On Wed, Mar 14, 2001 at 12:41:09 +, David Malone wrote: > > On Tue, Mar 13, 2001 at 07:52:49AM -0500, Christos Zoulas wrote: > > > > > Thanks so much! I wonder how come this bug remained unnoticed for such > > > a long time! >

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread Andrey A. Chernov
On Wed, Mar 14, 2001 at 12:41:09 +, David Malone wrote: > On Tue, Mar 13, 2001 at 07:52:49AM -0500, Christos Zoulas wrote: > > > Thanks so much! I wonder how come this bug remained unnoticed for such > > a long time! > > AFAIK, this isn't a bug. It's what csh has always done. (It's what > IB

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-14 Thread David Malone
On Tue, Mar 13, 2001 at 07:52:49AM -0500, Christos Zoulas wrote: > Thanks so much! I wonder how come this bug remained unnoticed for such > a long time! AFAIK, this isn't a bug. It's what csh has always done. (It's what IBM and Sun's csh do anyway...) To echo a newline in csh you do 'echo ""'.

Re: Maintainer? (was Re: tcsh 6.10.00 echo;echo;echo; bug with fix)

2001-03-13 Thread Warner Losh
In message <[EMAIL PROTECTED]> "Andrey A. Chernov" writes: : Who is our tcsh maintainer now? I am. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message

Re: Maintainer? (was Re: tcsh 6.10.00 echo;echo;echo; bug with fix)

2001-03-13 Thread David O'Brien
On Tue, Mar 13, 2001 at 01:26:47PM +0300, Andrey A. Chernov wrote: > Who is our tcsh maintainer now? On the FreeBSD end it is imp. -- -- David ([EMAIL PROTECTED]) GNU is Not Unix / Linux Is Not UniX To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" i

Re: tcsh 6.10.00 echo;echo;echo; bug with fix

2001-03-13 Thread Christos Zoulas
On Mar 13, 1:19pm, [EMAIL PROTECTED] ("Andrey A. Chernov") wrote: -- Subject: tcsh 6.10.00 echo;echo;echo; bug with fix Thanks so much! I wonder how come this bug remained unnoticed for such a long time! christos | echo;echo;echo; must output 3 new lines but currently not due to obvious | bug:

Re: Maintainer? (was Re: tcsh 6.10.00 echo;echo;echo; bug with fix)

2001-03-13 Thread Andrey A. Chernov
On Tue, Mar 13, 2001 at 11:41:26 +0100, Johan Karlsson wrote: > At Tue, 13 Mar 2001 13:26:47 +0300, "Andrey A. Chernov" wrote: > > Who is our tcsh maintainer now? > > Don't know but tcsh is contibified and from > /usr/src/contrib/tcsh/README > > 12) PLEASE send any bug reports (and fixes), code

Re: Maintainer? (was Re: tcsh 6.10.00 echo;echo;echo; bug with fix)

2001-03-13 Thread Johan Karlsson
At Tue, 13 Mar 2001 13:26:47 +0300, "Andrey A. Chernov" wrote: > Who is our tcsh maintainer now? Don't know but tcsh is contibified and from /usr/src/contrib/tcsh/README 12) PLEASE send any bug reports (and fixes), code for new features, comments, questions, etc. (even flames) to:

Maintainer? (was Re: tcsh 6.10.00 echo;echo;echo; bug with fix)

2001-03-13 Thread Andrey A. Chernov
Who is our tcsh maintainer now? On Tue, Mar 13, 2001 at 13:19:44 +0300, Andrey A. Chernov wrote: > echo;echo;echo; must output 3 new lines but currently not due to obvious > bug: > > --- sh.func.c.bak Fri Dec 1 01:18:27 2000 > +++ sh.func.c Tue Mar 13 13:04:54 2001 > @@ -1147,7 +1147,7 @@ >

Re: tcsh history and month bugfix: tc.prompt.c v3.38

2000-06-10 Thread Kimmo Suominen
This has been applied. + Kim | From:"Andrey A. Chernov" <[EMAIL PROTECTED]> | Date:Fri, 21 Apr 2000 08:36:12 +0400 | | --- tc.prompt.c.bak Thu Apr 20 11:47:23 2000 | +++ tc.prompt.c Fri Apr 21 08:31:17 2000 | @@ -222,7 +222,7 @@ | fmthist('R', info, (char *) (cz

Re: tcsh bug

2000-04-24 Thread Doug Ambrisko
David O'Brien writes: | On Mon, Apr 24, 2000 at 04:04:00PM -0700, Doug Ambrisko wrote: | > With -current as of the weekend. I now have tcsh as the root shell. | > I noticed something "strange", my history only displays the time, for example | | Known problem. Will be fixed in a few days. Thank

Re: tcsh bug

2000-04-24 Thread David O'Brien
On Mon, Apr 24, 2000 at 04:04:00PM -0700, Doug Ambrisko wrote: > With -current as of the weekend. I now have tcsh as the root shell. > I noticed something "strange", my history only displays the time, for example Known problem. Will be fixed in a few days. -- -- David([EMAIL PROTECTED])

Re: tcsh history and month bugfix: tc.prompt.c v3.38

2000-04-20 Thread Christos Zoulas
On Apr 21, 8:36am, [EMAIL PROTECTED] ("Andrey A. Chernov") wrote: -- Subject: tcsh history and month bugfix: tc.prompt.c v3.38 thanks, I am redoing the code for tc.prompt.c anyway because it is wrong! christos To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" i