From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-users@zsh.org
Subject: Re: $_tty is gone after system upgrade
Date: Sun, 25 Sep 2022 18:09:17 +0100 [thread overview]
Message-ID: <38d4d0af61e5336c9fff93f7ffb60e2974fe8067.camel@ntlworld.com> (raw)
In-Reply-To: <a3ed41d1-8de0-515b-f7ef-363af45fa6ea@eastlink.ca>
On Sun, 2022-09-25 at 08:51 -0700, Ray Andrews wrote:
> On 2022-09-25 08:42, Roman Perepelitsa wrote:
> >
> > I don't recall any version of zsh setting _tty. Debian 9 doesn't set it either.
>
> Ah! Dumb question, it was my own variable. I have this:
>
> if [[ $TERM == 'xterm' ]]; then
>
> _tty="${TTY#/dev/pts/}"
>
> ... but what's changed is the $TERM used to be "xterm" but is now
> "xterm-256color" so that's where the problem is. Easy to fix.
>
> Do we have some way of erasing a question entirely from the site? A
> question like this one shouldn't even have been asked, it's just
> pollution. Thanks Roman.
Actually, I disagree --- I think a reminder that names of terminals change
and that that may have consequences for shell code is very useful.
pws
prev parent reply other threads:[~2022-09-25 17:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-25 15:32 Ray Andrews
2022-09-25 15:42 ` Roman Perepelitsa
2022-09-25 15:51 ` Ray Andrews
2022-09-25 17:09 ` Peter Stephenson [this message]
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=38d4d0af61e5336c9fff93f7ffb60e2974fe8067.camel@ntlworld.com \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-users@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).