zsh-workers
 help / color / mirror / code / Atom feed
From: Jens Staal <staal1978@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: best way to disable PRIVILEGED?
Date: Mon, 29 Jun 2020 08:55:31 +0200	[thread overview]
Message-ID: <20200629065531.cebmmaewfpgcymqu@Hugin> (raw)
In-Reply-To: <20200628143127.11396dc2@tarpaulin.shahaf.local2>

>From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
>>On Sun, 2020-06-28 at 14:10 +0200, Jens Staal wrote:
>> the zsh executes but with the error: "zsh: error on TTY read:
>> permission denied"

>My guess here would be this is something to do with job control /
>terminal sessions, which is quite hairy stuff and where different OSes
>can definitely go their own way, so not related to UID settings.
>However, this is just based on where I've seen problems in the
>past, and I don't have any specific advice to offer.

Indeed job control might definitely be something. I remember having to do
-DNOPROSPECTOFWORK on mksh under Plan9.

>To be clear, is this a newly assigned pseudoterminal, or are you
>starting zsh within an existing terminal window?

I start it within an existing terminal window. Something I am now considering is
to try to give some more "meat" to my terminfo (now just stubs from old
pdcurses) and I think I might get some inspiration from the vt emulation that
exists on Plan9:
http://man.cat-v.org/9front/1/vt

I might even be able to just import some code for /sys/src/cmd/vt for that
library. No idea if that will help me. 

I sprinkled my libterm.a stubs library with printf for every function but I
could not see that one of those functions were called before the crash. I got a
tip to try to debug with a tool called "acid" so I guess that is my next step...

Executing zsh after activating the vt emulator did also not change the error.

>pws





  parent reply	other threads:[~2020-06-29  6:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-28 12:10 Jens Staal
2020-06-28 14:31 ` Daniel Shahaf
2020-06-28 16:26   ` Jens Staal
2020-06-29  6:55   ` Jens Staal [this message]
2020-06-28 17:06 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200629065531.cebmmaewfpgcymqu@Hugin \
    --to=staal1978@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).