Re: interactive shell detection in shrc

2024-10-05 Thread Greg A. Woods
because (like “TERM”), xterm both reads and updates the variable, and because the program started by xterm is not necessarily a shell. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms

Re: interactive shell detection in shrc

2024-10-04 Thread Greg A. Woods
On stock NetBSD this is just sh(1) and ksh(1), but it may also include older AT&T Ksh, other pdksh(1), etc. It would matter for the Heirloom Shell, but since it doesn't support $ENV at all, it does not actually matter for it. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpKwP6wMgEmm.pgp Description: OpenPGP Digital Signature

Re: interactive shell detection in shrc

2024-10-03 Thread Greg A. Woods
At Mon, 30 Sep 2024 21:59:49 +0200, wrote: Subject: Re: interactive shell detection in shrc > > On Mon, Sep 30, 2024 at 12:14:44PM -0700, Greg A. Woods wrote: > > > SHELL is set by ksh and not by sh (sh handles NETBSD_SHELL), if I'm > > > not mistaken? > > >

Re: interactive shell detection in shrc

2024-09-30 Thread Greg A. Woods
ferent and unrelated. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms

Re: interactive shell detection in shrc

2024-09-28 Thread Greg A. Woods
king I had it. > But as Steffen (kind of) indicated, "test -t 0 && test -t 2" is > probably an easier way than using tty. Well, I'll be. I don't remember ever using "test -t"! I think I must have skipped over it entirely all these years! So I now have:

Re: interactive shell detection in shrc

2024-09-27 Thread Greg A. Woods
At Fri, 27 Sep 2024 07:14:46 +0700, Robert Elz wrote: Subject: Re: interactive shell detection in shrc > > Date:Thu, 26 Sep 2024 15:16:39 -0700 > From: "Greg A. Woods" > Message-ID: > > | I'm very curious: why did you include "

Re: interactive shell detection in shrc

2024-09-27 Thread Greg A. Woods
At Fri, 27 Sep 2024 01:32:34 +0200, Steffen Nurpmeso wrote: Subject: Re: interactive shell detection in shrc > > Hello. > > Greg A. Woods wrote in : > |At Tue, 24 Sep 2024 00:56:40 +0200, Steffen Nurpmeso \ > |wrote: > |Subject: Re: interactive sh

Re: interactive shell detection in shrc

2024-09-26 Thread Greg A. Woods
;; esac case "$0" in -*) _interactive=true ;; esac if ${_interactive}; then : ... do interactive setup else : ... do script-mode setup fi unset _int

Re: POSIX.2, IFS and echo command

2024-07-06 Thread Greg A. Woods
e stopped pulling in NetBSD changes and fixes early in 2002 and so dash has diverged ever since, especially with its own unique changes. For some interesting reading: https://www.in-ulm.de/~mascheck/various/ash/ Go up a couple of levels for even more good reading. --

Re: compilers and unused args in functions

2024-07-05 Thread Greg A. Woods
r all idiomatic C when used with more complex expressions, such as function calls. Here "arg" is a valid expression, and a "(void)" cast discards or ignores the result of an expression. The abstraction of __USE() seems unnecessary and more difficult to read. --

Re: Possible "new" redirect style for /bin/sh (needs a name)

2021-04-11 Thread Greg A. Woods
At Sun, 11 Apr 2021 09:05:57 +0200, tlaro...@polynum.com wrote: Subject: Re: Possible "new" redirect style for /bin/sh (needs a name) > > On Sat, Apr 10, 2021 at 05:04:11PM -0700, Greg A. Woods wrote: > > > > So, still, the shell could keep a "high FD waterm

Re: Possible "new" redirect style for /bin/sh (needs a name)

2021-04-10 Thread Greg A. Woods
efer to it (and also use as a sub-section heading for the man page, > and a test case name for (yet to be written) ATF tests of this) The only thing that immediately jumped into my mind was "dynamic redirection". Maybe Steve Bourne could suggest a name? (seriously) --

Re: odd ATF failure for sh: ulimit_redirection_interaction failed

2021-03-12 Thread Greg A. Woods
orced (i.e. if the ulimit for open FDs is not kept lower than the number of currently open FDs); though I have not done any other kind of test to be sure the data sent to a multi-digit FD is actually received from the given FD. -- Greg A. Woods Ke

Re: odd ATF failure for sh: ulimit_redirection_interaction failed

2021-03-12 Thread Greg A. Woods
ug printfs to the shell too, but I'm currently stymied by another problem (I can't access the domU filesystem from the dom0, and until I can get a complete rebuild to finish so I can do a full reinstall of the domU, accessing the FS from the dom0 would be the only easy way I have of injecti

odd ATF failure for sh: ulimit_redirection_interaction failed

2021-03-11 Thread Greg A. Woods
id argument tc-se: tc-end: 1615494985.880185, ulimit_redirection_interaction, failed, atf-check failed; see the output of the test for details -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpH

Re: recent changes to pthread_fork.c:fork() cause static linking to fail if the app provides its own malloc()

2020-07-15 Thread Greg A. Woods
g on what the internal malloc() uses to obtain heap space). -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpF7qd4gS1wJ.pgp Description: OpenPGP Digital Signature

Re: recent changes to pthread_fork.c:fork() cause static linking to fail if the app provides its own malloc()

2020-07-13 Thread Greg A. Woods
At Tue, 14 Jul 2020 00:28:46 +0200, Joerg Sonnenberger wrote: Subject: Re: recent changes to pthread_fork.c:fork() cause static linking to fail if the app provides its own malloc() > > On Mon, Jul 13, 2020 at 03:05:17PM -0700, Greg A. Woods wrote: > > I think it is the following

recent changes to pthread_fork.c:fork() cause static linking to fail if the app provides its own malloc()

2020-07-13 Thread Greg A. Woods
ot/shells/heirloom-sh/work/heirloom-sh-050706/mapmalloc.c:303: first defined here Should I send-pr this? Is there any possibility of an "easy" fix? -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote

Re: style change: explicitly permit braces for single statements

2020-07-13 Thread Greg A. Woods
guide rule that should die) -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpKDOKszsCHU.pgp Description: OpenPGP Digital Signature

Re: style change: explicitly permit braces for single statements

2020-07-12 Thread Greg A. Woods
I get that (I am too), but in my opinion C is just not really safe without them. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgp07ateykbKh.pgp Description: OpenPGP Digital Signature

postinstall removed yet another "obsolete" system library that was still used....

2020-06-27 Thread Greg A. Woods
nly protects things installed via pkgsrc, and there's still the risk of subsequently needing to install a binary package built for an older release which needs one of these "obsolete" files, but at least pkg_add can (be made to if it doesn't already) notice this and abor

Re: merging /usr/bin etc. to / (was: Solving the syslogd problem)

2020-02-04 Thread Greg A. Woods
as opposed to a traditional network filesystem like NFS). E.g. for shared mounts of /dev/xbd?? devices in Xen, or shared mounts of a single FibreChannel or iSCSI target. Can we even invent a new kind of shareable filesystem using, e.g., lockless on-disk data structures for writeable mounts? -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpdoZp0PlAPV.pgp Description: OpenPGP Digital Signature

Re: failure when building a static-linked emacs25 (-nox11 on amd64)

2018-02-05 Thread Greg A. Woods
R link. Neither "site:gnats.netbsd.org emacs" nor "site:mail-index.netbsd.org emacs crash" can find it. Google's spider should have found the PR and all the related mail long before now. -- Greg A. Woods +1 250 762-7675

failure when building a static-linked emacs25 (-nox11 on amd64)

2018-02-04 Thread Greg A. Woods
a4 in ?? () #16 0x7f7ff2ab in ?? () #17 0x7f7ff2c6 in ?? () #18 0x00007f7ff2c9 in ?? () #19 0x7f7ff2dc in ?? () #20 0x in ?? () (gdb) That seems even more mysterious to me, though perhaps there's a good explanation somehow. (E.g. don't malloc() in a dumped binary because that's already been done? Or maybe the dumped heap is inconsistent?) -- Greg A. Woods +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgp0xUxIYhwLH.pgp Description: PGP signature

Re: randomness (crypto?) code example wanted please?

2017-06-27 Thread Greg A. Woods
g to invent a new category for it just to keep it separate from both Ksh (and clones) and other Ash derivatives that don't grow a $RANDOM. -- Greg A. Woods Planix, Inc. +1 250 762-7675

Re: NetBSD on embedded devices

2017-06-27 Thread Greg A. Woods
x filename 4536955 13034660 430196 18001811112af93 netbsd-NET5501.EMBED 03:18 [98] $ ls -l netbsd-NET5501.EMBED -rwxr-xr-x 1 woods wheel 18268428 Jun 5 2016 netbsd-NET5501.EMBED -- Greg A. Woods