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
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
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?
> >
>
ferent and unrelated.
--
Greg A. Woods
Kelowna, BC +1 250 762-7675 RoboHack
Planix, Inc. Avoncote Farms
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:
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 "
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
;;
esac
case "$0" in
-*)
_interactive=true
;;
esac
if ${_interactive}; then
: ... do interactive setup
else
: ... do script-mode setup
fi
unset _int
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.
--
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.
--
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
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)
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
26 matches
Mail list logo