NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/48499 (sh(1) doesn't allow the POSIX command(1) -pv)
The following reply was made to PR bin/48499; it has been noted by GNATS.
From: Steffen Nurpmeso <steffen%sdaoden.eu@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/48499 (sh(1) doesn't allow the POSIX command(1) -pv)
Date: Wed, 25 Jul 2018 22:47:20 +0200
Robert Elz wrote in <20180725171500.BC0B67A210%mollari.NetBSD.org@localhost>:
|The following reply was made to PR bin/48499; it has been noted by GNATS.
|
|From: Robert Elz <kre%munnari.OZ.AU@localhost>
|To: gnats-bugs%NetBSD.org@localhost
|Cc:=20
|Subject: Re: bin/48499 (sh(1) doesn't allow the POSIX command(1) -pv)
|Date: Thu, 26 Jul 2018 00:11:43 +0700
|
| Date: Wed, 25 Jul 2018 15:50:01 +0000 (UTC)
| From: Steffen Nurpmeso <steffen%sdaoden.eu@localhost>
| Message-ID: <20180725155001.7A2D47A22E%mollari.NetBSD.org@localhost>
|=20
|| Great. I have found the report: from 2014-01-04. ^.^
|=20
| We are gardually cleaning up the reported problems....
|=20
| gradually!
Of course. I did not want to imply some kind of pressure, except
maybe of that of my own surprise, since i had totally forgotten
about this report.
|| This is really not easy for me, so much download.
|=20
| I understand. If you have a working NetBSD (7 or more recent)
| and you tell me which version, I can probably make you a sh binary
| from current sh sources, to work on that system, if you'd like to try it.
|=20
| Otherwise I'll wait a bit in case there any other reported issues, and
| then close this.
Of course i will run NetBSD. 8.0_RC1, to be exact. I checked out
sh, test, kill and printf
#[steffen@nbsd]$ export CVSROOT=3D"anoncvs%anoncvs.NetBSD.org@localhost:/cvsroot"
#[steffen@nbsd]$ cvs checkout -r -P src bin/sh
Warning: Permanently added the RSA host key for IP address '199.233.217.1=
98' to the list of known hosts.
cvs server: cannot find module `bin/sh' - ignored
cvs [checkout aborted]: cannot expand modules
(i got it right later..), did some "ln -s" (should have looked in
the Makefile and set NETBSDSRCDIR), and compiled it without
problems. I can confirm that it works:
#[steffen@nbsd]$ cd bin/
/home/steffen/usr-nbsd-netbsd-i386/bin
#[steffen@nbsd]$ ln -s /bin/date gcc
#[steffen@nbsd]$ cd
/home/steffen
#[steffen@nbsd]$ command -v gcc
/home/steffen/usr-nbsd-netbsd-i386/bin/gcc
#[steffen@nbsd]$ command -pv gcc
/usr/bin/gcc
|| I have seen NetBSD now follows No. 1 regarding context revelation:
|| =20
|| #?1[steffen@essex ]$ alias a=3Db
|| #?0[steffen@essex ]$ alias b=3D'echo c'
|| #?0[steffen@essex ]$ a
|| c
|=20
| This much could be from the NetBSD sh, but
|=20
|| #?0[steffen@essex ]$ command -v a
|| alias a=3D'b'
|| #?0[steffen@essex ]$ command -V a
|| a is aliased to `b'
|=20
| that isn't, that looks like bash.
|=20
| What NetBSD sh (from HEAD) does is ...
|=20
| [jinx]$ command -v a
| b=20
| [jinx]$ command -V a
| a is an alias for: b=20
Yes, it is different:
#[steffen@nbsd]$ command -V s-groff
s-groff is an alias for: groff -dpaper=3Da4 -P-pa4=20
|| May i suggest going one step further for this interactive thing,
| [...]
|| a -> b -> 'echo c'
|=20
| You can send in another PR (a change request) for that if you
| like, and we'll see what people think - but I would not be inclinded
| to go that far unless there is a real demand for it (just means a
| bunch of extra code for an obscure feature (aliases) that should
| probably just be removed anyway).
Ok... Ok, i realize that the NetBSD shell allows function names
which contain a hyphen-minus.
|| Ciao from midsummer Germany,
|=20
| I was once told that "ausweidersehen" was inappropriate for a
| phone call, and I'd guess "ausweiderhoeren" is just as
| inappropriate for an e-mail, so "ausweiderbreifen" ???
--End of <20180725171500.BC0B67A210%mollari.NetBSD.org@localhost>
Robert Elz wrote in <20180725183501.3CE987A210%mollari.NetBSD.org@localhost>:
|The following reply was made to PR bin/48499; it has been noted by GNATS.
|
|From: Robert Elz <kre%munnari.OZ.AU@localhost>
|To: gnats-bugs%NetBSD.org@localhost
|Cc:=20
|Subject: Re: bin/48499 (sh(1) doesn't allow the POSIX command(1) -pv)
|Date: Thu, 26 Jul 2018 01:30:30 +0700
|
| Date: Wed, 25 Jul 2018 17:15:00 +0000 (UTC)
| From: Robert Elz <kre%munnari.OZ.AU@localhost>
| Message-ID: <20180725171500.BC0B67A210%mollari.NetBSD.org@localhost>
|=20
|| so "ausweiderbreifen" ???
|=20
| Ugh, memory is worse than Ieven I thought (which is saying something)
|=20
| maybe auswiederschreiben ?
Very nice!!! I am inclined to correct an elder and wiser man in
that it should be "auf", and yes, why not "Auf Wiederschreiben"?
(But i never encountered this term. "Auf Wiedersehen" and "Auf
Wiederh=C3=B6ren" for seeing and hearing are very common still. Even
in Germany that is, but mind you, it will not take long and we are
all talking English, unless a miracle happens.)
--End of <20180725183501.3CE987A210%mollari.NetBSD.org@localhost>
I wish i could put some heart and soul in calligraphic Thai.
Good bye!
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
Home |
Main Index |
Thread Index |
Old Index