Re: CVS commit: src/bin/sh

2018-03-17 Thread Valery Ushakov
On Sat, Mar 17, 2018 at 23:10:38 +0700, Robert Elz wrote: > Date:Sat, 17 Mar 2018 16:18:58 +0300 > From:Valery Ushakov > Message-ID: <20180317131858.gi3...@pony.stderr.spb.ru> > > | Exactly. And when all of them are, it kinda defeats the

Re: CVS commit: src/bin/sh

2018-03-17 Thread Robert Elz
Date:Sat, 17 Mar 2018 16:18:58 +0300 From:Valery Ushakov Message-ID: <20180317131858.gi3...@pony.stderr.spb.ru> | Exactly. And when all of them are, it kinda defeats the purpose of | them being in the ENVIRONMENT section. Why?What

Re: CVS commit: src/bin/sh

2018-03-17 Thread Valery Ushakov
On Sat, Mar 17, 2018 at 09:05:37 +0700, Robert Elz wrote: > Date:Sat, 17 Mar 2018 03:46:44 +0300 > From:Valery Ushakov > Message-ID: <20180317004644.gh3...@pony.stderr.spb.ru> > > | That reminds me... We currently abuse ENVIRONMENT section to

Re: CVS commit: src/bin/sh

2018-03-16 Thread Robert Elz
Date:Sat, 17 Mar 2018 03:46:44 +0300 From:Valery Ushakov Message-ID: <20180317004644.gh3...@pony.stderr.spb.ru> | That reminds me... We currently abuse ENVIRONMENT section to document | variables like PS1 or HISTSIZE which are quite obviously

Re: CVS commit: src/bin/sh

2018-03-16 Thread Valery Ushakov
On Fri, Mar 16, 2018 at 23:58:30 +0700, Robert Elz wrote: > Date:Fri, 16 Mar 2018 17:24:55 +0300 > From:Valery Ushakov > Message-ID: <20180316142455.gf3...@pony.stderr.spb.ru> > > | mdoc.samples(7) is a very handy reference. > > For me that is

Re: CVS commit: src/bin/sh

2018-03-16 Thread Robert Elz
Date:Fri, 16 Mar 2018 17:24:55 +0300 From:Valery Ushakov Message-ID: <20180316142455.gf3...@pony.stderr.spb.ru> | mdoc.samples(7) is a very handy reference. For me that is the same as mdoc(7) (a copy of the same man page) - is that what is

Re: CVS commit: src/bin/sh

2018-03-16 Thread Valery Ushakov
On Fri, Mar 16, 2018 at 18:59:49 +0700, Robert Elz wrote: > Date:Fri, 16 Mar 2018 14:41:22 +0300 > From:Valery Ushakov > Message-ID: <20180316114122.gd3...@pony.stderr.spb.ru> > > | Please, add them back, and ideally add them also to > | the

Re: CVS commit: src/bin/sh

2018-03-16 Thread Robert Elz
Date:Fri, 16 Mar 2018 14:15:47 +0300 From:Valery Ushakov Message-ID: <20180316111547.gc3...@pony.stderr.spb.ru> | Or: | | When a shell function is executed, all of the shell positional | parameters (except $0, which remains

Re: CVS commit: src/bin/sh

2018-03-16 Thread Robert Elz
Date:Fri, 16 Mar 2018 14:41:22 +0300 From:Valery Ushakov Message-ID: <20180316114122.gd3...@pony.stderr.spb.ru> | The yak is much more entangled now, at least its source form is! | | -.Dv 0 \" $0 | +.Dv 0 | | Why did you delete

Re: CVS commit: src/bin/sh

2018-03-16 Thread Valery Ushakov
On Fri, Mar 16, 2018 at 14:41:22 +0300, Valery Ushakov wrote: > -.Li $1 , > +.Li 1 , PS: Also, the semantically correct change is from .Li $1 to .Dv 1 -uwe

Re: CVS commit: src/bin/sh

2018-03-16 Thread Valery Ushakov
On Fri, Mar 16, 2018 at 11:19:24 +, Robert Elz wrote: > Module Name: src > Committed By: kre > Date: Fri Mar 16 11:19:24 UTC 2018 > > Modified Files: > src/bin/sh: sh.1 > > Log Message: > Give the yak a quick trim and shave, and make one or two minor > wording changes (which

Re: CVS commit: src/bin/sh

2018-03-16 Thread Valery Ushakov
On Fri, Mar 16, 2018 at 17:11:09 +0700, Robert Elz wrote: > Date:Thu, 15 Mar 2018 01:20:43 + > From:"Valeriy E. Ushakov" > Message-ID: <20180315012043.c3d92f...@cvs.netbsd.org> > > | The manual is still rather inconsistent e.g. when referring

Re: CVS commit: src/bin/sh

2018-03-16 Thread Robert Elz
Date:Thu, 15 Mar 2018 01:20:43 + From:"Valeriy E. Ushakov" Message-ID: <20180315012043.c3d92f...@cvs.netbsd.org> | The manual is still rather inconsistent e.g. when referring to | parameters where it randomly uses both $0 and 0 or $@ and @ -

Re: CVS commit: src/bin/sh

2017-11-20 Thread maya
...now I see it's challenge mode scripting: sed only, no awk or grep. :-)

Re: CVS commit: src/bin/sh

2017-11-20 Thread maya
On Tue, Nov 21, 2017 at 03:27:11AM +, Christos Zoulas wrote: > The reason is that tsutsui@? added some binaries (sysctl? etc) back to > the ramdisk. We are working trying to fix it. I see, thanks. Going by the dmesg posted on dmesgd.nycbug.org, it looks like for rootdev we can use: cat

Re: CVS commit: src/bin/sh

2017-11-20 Thread Robert Elz
Date:Tue, 21 Nov 2017 03:27:11 + (UTC) From:chris...@astron.com (Christos Zoulas) Message-ID: | We are working trying to fix it. Regardless, upon reflection, there is no need for -X in a SMALL shell, as used in install media,

Re: CVS commit: src/bin/sh

2017-11-20 Thread Christos Zoulas
In article <20171121015824.ga17...@homeworld.netbsd.org>, wrote: >On Sun, Nov 19, 2017 at 03:23:02AM +, Robert Elz wrote: >> Module Name: src >> Committed By:kre >> Date:Sun Nov 19 03:23:01 UTC 2017 >> >> Modified Files: >> src/bin/sh: eval.c

Re: CVS commit: src/bin/sh

2017-11-20 Thread Robert Elz
Date:Tue, 21 Nov 2017 01:58:24 + From:m...@netbsd.org Message-ID: <20171121015824.ga17...@homeworld.netbsd.org> | This might be the reason the atari floppies are overflowing, I didn't know they were, and yes, I suppose it might be, though the size increase from

Re: CVS commit: src/bin/sh

2017-11-20 Thread maya
On Sun, Nov 19, 2017 at 03:23:02AM +, Robert Elz wrote: > Module Name: src > Committed By: kre > Date: Sun Nov 19 03:23:01 UTC 2017 > > Modified Files: > src/bin/sh: eval.c option.list options.c output.c output.h sh.1 var.c > > Log Message: > Implement the -X option - an

Re: CVS commit: src/bin/sh

2017-06-08 Thread Robert Elz
Date:Thu, 8 Jun 2017 17:42:43 +0200 From:Joerg Sonnenberger Message-ID: <20170608154243.ga25...@britannica.bec.de> | /bin/sh is still broken. Try to build pkgtools/cwrappers. I have just committed a fix/workaround which allows cwrappers to build (for

Re: CVS commit: src/bin/sh

2017-06-08 Thread Joerg Sonnenberger
On Thu, Jun 08, 2017 at 05:42:43PM +0200, Joerg Sonnenberger wrote: > On Thu, Jun 08, 2017 at 01:12:17PM +, Robert Elz wrote: > > Module Name:src > > Committed By: kre > > Date: Thu Jun 8 13:12:17 UTC 2017 > > > > Modified Files: > > src/bin/sh: eval.c

Re: CVS commit: src/bin/sh

2017-06-08 Thread Joerg Sonnenberger
On Thu, Jun 08, 2017 at 01:12:17PM +, Robert Elz wrote: > Module Name: src > Committed By: kre > Date: Thu Jun 8 13:12:17 UTC 2017 > > Modified Files: > src/bin/sh: eval.c nodetypes parser.c > > Log Message: > Remove some left over baggage from the LINENO v1 implementation

Re: CVS commit: src/bin/sh

2017-03-18 Thread Christos Zoulas
On Mar 19, 7:23am, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: CVS commit: src/bin/sh | If that was the aim then it failed drastically for sh, the (much bigger) | doc in USD.doc gets cleaned by "make clean" (and regenerated again by | just "make" though probably no

Re: CVS commit: src/bin/sh

2017-03-18 Thread Robert Elz
Date:Sat, 18 Mar 2017 19:29:58 -0400 From:chris...@zoulas.com (Christos Zoulas) Message-ID: <20170318232958.bd31717f...@rebar.astron.com> | Well, this is how it is for all the rest of the programs; .html are cleaned | by cleandir. I think the rationale was that

Re: CVS commit: src/bin/sh

2017-03-18 Thread Christos Zoulas
On Mar 19, 3:43am, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: CVS commit: src/bin/sh | That makes sense, but to me that would mean that clean removes files | generated by make ("make all"), and cleandir removes files generated | by make depend (+clean) | | That's

Re: CVS commit: src/bin/sh

2017-03-18 Thread Robert Elz
Date:Sat, 18 Mar 2017 14:57:41 + (UTC) From:chris...@astron.com (Christos Zoulas) Message-ID: | It should be consistent... That makes sense, but to me that would mean that clean removes files generated by make ("make all"),

Re: CVS commit: src/bin/sh

2017-03-18 Thread Robert Elz
Date:Sat, 18 Mar 2017 14:03:47 +0100 From:Joerg Sonnenberger Message-ID: <20170318130347.gb25...@britannica.bec.de> | Sure, my point is primarily about the HTML man page. Yes, I guessed that. | Just like you don't clean the cat page by hand. What

Re: CVS commit: src/bin/sh

2017-03-18 Thread Joerg Sonnenberger
On Fri, Mar 17, 2017 at 09:31:23PM +0700, Robert Elz wrote: > Date:Fri, 17 Mar 2017 14:43:31 +0100 > From:Joerg Sonnenberger > Message-ID: <20170317134331.ga14...@britannica.bec.de> > > | make distclean? > > That cleans the sh.html1 file (though that

Re: CVS commit: src/bin/sh

2017-03-17 Thread Robert Elz
Date:Fri, 17 Mar 2017 14:43:31 +0100 From:Joerg Sonnenberger Message-ID: <20170317134331.ga14...@britannica.bec.de> | make distclean? That cleans the sh.html1 file (though that one should be removed by make clean as well) but still didn't clean up

Re: CVS commit: src/bin/sh

2017-03-17 Thread Joerg Sonnenberger
On Thu, Mar 16, 2017 at 01:09:06PM +, Robert Elz wrote: > Module Name: src > Committed By: kre > Date: Thu Mar 16 13:09:06 UTC 2017 > > Modified Files: > src/bin/sh: Makefile show.c show.h > > Log Message: > Have "make clean" remove sh.html1 and adapt it to clean trace files >

Re: CVS commit: src/bin/sh

2016-05-31 Thread Robert Elz
Date:Tue, 31 May 2016 00:11:00 +0200 From:Joerg Sonnenberger Message-ID: <20160530221100.ga18...@britannica.bec.de> | > PR bin/43639 - check that a file being read by the '.' command | > is a regular file, even when it is given as a full pathname.

Re: CVS commit: src/bin/sh

2016-05-30 Thread Robert Elz
Date:Tue, 31 May 2016 00:11:00 +0200 From:Joerg Sonnenberger Message-ID: <20160530221100.ga18...@britannica.bec.de> | loading cache /dev/null within ltconfig | .: /dev/null: not a regular file | | I think that's actually a valid use case for

Re: CVS commit: src/bin/sh

2016-05-30 Thread Joerg Sonnenberger
On Tue, May 03, 2016 at 03:12:40AM +, Robert Elz wrote: > Module Name: src > Committed By: kre > Date: Tue May 3 03:12:40 UTC 2016 > > Modified Files: > src/bin/sh: eval.c > > Log Message: > PR bin/43639 - check that a file being read by the '.' command > is a regular file,

Re: CVS commit: src/bin/sh

2016-02-24 Thread Robert Elz
Date:Wed, 24 Feb 2016 09:38:40 -0500 From:"Christos Zoulas" Message-ID: <20160224143840.c906df...@cvs.netbsd.org> | Modified Files: | src/bin/sh: options.c | | Log Message: | If we don't have shared address space vfork fail back to

Re: CVS commit: src/bin/sh

2016-01-12 Thread David Laight
On Tue, Jan 05, 2016 at 01:19:36AM +, Taylor R Campbell wrote: >Date: Mon, 4 Jan 2016 20:06:55 -0500 >From: chris...@zoulas.com (Christos Zoulas) > >On Jan 5, 5:33am, k...@munnari.oz.au (Robert Elz) wrote: >-- Subject: Re: CVS commit: src/bin/sh > >|

Re: CVS commit: src/bin/sh

2016-01-04 Thread Robert Elz
Date:Mon, 4 Jan 2016 08:26:29 -0500 From:chris...@zoulas.com (Christos Zoulas) Message-ID: <20160104132629.a6ee017f...@rebar.astron.com> | Ksh does it and it works... I must have been too aggressive. It isn't a matter of whether it can be made to work or not for

Re: CVS commit: src/bin/sh

2016-01-04 Thread Christos Zoulas
On Jan 5, 2:07am, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: CVS commit: src/bin/sh | It isn't a matter of whether it can be made to work or not for | NetBSD's build system, or whether you have hodden a bug in the | rc scripts (I'll explain why "hidden" rather than &qu

Re: CVS commit: src/bin/sh

2016-01-04 Thread Christos Zoulas
On Jan 5, 4:40am, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: CVS commit: src/bin/sh | | - Is leaving descriptors open really needed? I can write the above | | example in a way it works... | | That one yes, but there are cases where more than one open doesn't work

Re: CVS commit: src/bin/sh

2016-01-04 Thread Robert Elz
Date:Mon, 4 Jan 2016 14:41:30 -0500 From:chris...@zoulas.com (Christos Zoulas) Message-ID: <20160104194130.6064f17f...@rebar.astron.com> | Yes, the issues are: | | - Is leaving descriptors open really needed? I can write the above | example in a

Re: CVS commit: src/bin/sh

2016-01-04 Thread Robert Elz
Date:Mon, 4 Jan 2016 16:50:18 -0500 From:chris...@zoulas.com (Christos Zoulas) Message-ID: <20160104215018.4017617f...@rebar.astron.com> | Sure, I think that there are examples where the parent/child shells use | fds > 2 to communicate, but with an exec'ed

Re: CVS commit: src/bin/sh

2016-01-04 Thread Christos Zoulas
On Jan 5, 5:33am, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: CVS commit: src/bin/sh | The exec'd programs in my case however tend to be #!/bin/sh scripts | that are tightly coupled to the script calling them. Ok, this I think will break. | | Does the exec'ed program know what

Re: CVS commit: src/bin/sh

2016-01-04 Thread Taylor R Campbell
Date: Mon, 4 Jan 2016 20:06:55 -0500 From: chris...@zoulas.com (Christos Zoulas) On Jan 5, 5:33am, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: CVS commit: src/bin/sh | | Does the exec'ed program know what to do with fd > 2? | | Is it hard-coded, or do we spec

Re: CVS commit: src/bin/sh

2014-10-18 Thread Alan Barrett
On Wed, 15 Oct 2014, Christos Zoulas wrote: Modified Files: src/bin/sh: redir.c Log Message: PR/48201: Miwa Susumu: Fix set -C (no clobber) for POSIX; from FreeBSD Can't use O_EXCL because of device nodes; also truncate. There are some TOCTOU races in this code, where something about

Re: CVS commit: src/bin/sh

2014-10-18 Thread Christos Zoulas
In article 20141018221947.ga2...@apb-laptoy.apb.alt.za, Alan Barrett a...@cequrux.com wrote: On Wed, 15 Oct 2014, Christos Zoulas wrote: Modified Files: src/bin/sh: redir.c Log Message: PR/48201: Miwa Susumu: Fix set -C (no clobber) for POSIX; from FreeBSD Can't use O_EXCL because of

Re: CVS commit: src/bin/sh

2011-08-23 Thread David Laight
On Tue, Aug 23, 2011 at 06:04:39AM -0400, Christos Zoulas wrote: Module Name: src Committed By: christos Date: Tue Aug 23 10:04:39 UTC 2011 Modified Files: src/bin/sh: expand.c Log Message: PR/45269: Andreas Gustafsson: Instead of falling off the edge when eating

Re: CVS commit: src/bin/sh

2011-08-23 Thread David Laight
On Tue, Aug 23, 2011 at 06:04:39AM -0400, Christos Zoulas wrote: Module Name: src Committed By: christos Date: Tue Aug 23 10:04:39 UTC 2011 Modified Files: src/bin/sh: expand.c Log Message: PR/45269: Andreas Gustafsson: Instead of falling off the edge when eating

Re: CVS commit: src/bin/sh

2011-01-08 Thread David Holland
On Sat, Jan 08, 2011 at 02:10:16AM +, Christos Zoulas wrote: Modified Files: src/bin/sh: histedit.c Log Message: Call el_source before initializing sh-specific editline properties (i.e. the editor type and the tab completion binding). This allows tab completion to work

Re: CVS commit: src/bin/sh

2011-01-07 Thread Christos Zoulas
In article 20110107222156.ede9e17...@cvs.netbsd.org, Julio Merino source-changes-d@NetBSD.org wrote: -=-=-=-=-=- Module Name: src Committed By: jmmv Date: Fri Jan 7 22:21:56 UTC 2011 Modified Files: src/bin/sh: histedit.c Log Message: Call el_source before initializing

CVS commit: src/bin/sh

2010-03-01 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Mon Mar 1 21:53:59 UTC 2010 Modified Files: src/bin/sh: sh.1 Log Message: \\ - \e To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/bin/sh/sh.1 Please note that diffs are not public domain; they are subject to

CVS commit: src/bin/sh

2010-03-01 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Mon Mar 1 21:53:59 UTC 2010 Modified Files: src/bin/sh: sh.1 Log Message: \\ - \e To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/bin/sh/sh.1 Please note that diffs are not public domain; they are subject to

CVS commit: src/bin/sh

2010-02-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Feb 21 09:54:57 UTC 2010 Modified Files: src/bin/sh: main.c Log Message: fix faulty logic in previous change. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/bin/sh/main.c Please note that diffs are not

CVS commit: src/bin/sh

2010-02-20 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Feb 20 23:15:17 UTC 2010 Modified Files: src/bin/sh: main.c Log Message: default to the original behavior for $ENV unless POSIXLY_CORRECT is set. To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55

CVS commit: src/bin/sh

2010-01-01 Thread David A. Holland
Module Name:src Committed By: dholland Date: Fri Jan 1 18:09:16 UTC 2010 Modified Files: src/bin/sh: sh.1 Log Message: fix typo To generate a diff of this commit: cvs rdiff -u -r1.93 -r1.94 src/bin/sh/sh.1 Please note that diffs are not public domain; they are subject

CVS commit: src/bin/sh

2010-01-01 Thread David A. Holland
Module Name:src Committed By: dholland Date: Fri Jan 1 19:34:59 UTC 2010 Modified Files: src/bin/sh: cd.c sh.1 Log Message: Make the cd builtin accept and ignore -P, which is a kshism that has been allowed to leak into POSIX and selects the behavior cd already

CVS commit: src/bin/sh

2010-01-01 Thread David A. Holland
Module Name:src Committed By: dholland Date: Fri Jan 1 19:51:19 UTC 2010 Modified Files: src/bin/sh: sh.1 Log Message: fix another typo To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 src/bin/sh/sh.1 Please note that diffs are not public domain; they are

CVS commit: src/bin/sh

2010-01-01 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Fri Jan 1 21:46:31 UTC 2010 Modified Files: src/bin/sh: sh.1 Log Message: Bump date for cd -P support. To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.97 src/bin/sh/sh.1 Please note that diffs are not public domain;

Re: CVS commit: src/bin/sh

2009-12-10 Thread Masao Uebayashi
More thought. All these confusions come from the inability of commands to generate output files separatedly. This is perfect legal dependency tree because each input/output relationship is 1:1 +- arith.c --+ arith.y -+ +- arith.o +- arith.h

Re: CVS commit: src/bin/sh

2009-12-09 Thread Masao Uebayashi
This added: arith.h: arith.c arith.c: arith.y I'm fairly sure this doesn't have the desired effect! In particular if arith.h doesn't exist, but arith.c does then you'll get a 'no rules to create arith.h' (or similar error). At least one of those dependencies must already exist!

Re: CVS commit: src/bin/sh

2009-10-07 Thread Alan Barrett
On Wed, 07 Oct 2009, Thomas Klausner wrote: For me, on current/amd64, the boot (without -s) stops and asks for a shell. I choose /bin/sh, then leave it, and I get the prompt again. When I replace /bin/sh with one from 20090922, boot succeeds to multi-user mode without these symptoms. Does

Re: CVS commit: src/bin/sh

2009-10-07 Thread Matthias Scheler
On Wed, Oct 07, 2009 at 10:45:53AM +0200, Alan Barrett wrote: On Wed, 07 Oct 2009, Thomas Klausner wrote: For me, on current/amd64, the boot (without -s) stops and asks for a shell. I've got the same problem under NetBSD/i386. I choose /bin/sh, then leave it, and I get the prompt again.

Re: CVS commit: src/bin/sh

2009-10-06 Thread Thomas Klausner
One of these two changes broke booting into multi-user mode. For me, on current/amd64, the boot (without -s) stops and asks for a shell. I choose /bin/sh, then leave it, and I get the prompt again. When I replace /bin/sh with one from 20090922, boot succeeds to multi-user mode without these

<    1   2   3