From: "Brian K. White" <brian@aljex.com>
To: <zsh-users@sunsite.dk>
Subject: TTY
Date: Tue, 20 Sep 2005 16:23:21 -0400 [thread overview]
Message-ID: <013301c5be21$34d57610$6600000a@venti> (raw)
How can I stop zsh, while in ksh emulation mode, from overwriting $TTY ?
I am setting TTY to the tty without the /dev/ in /etc/profile,
and then I am using that in many places throughout my software in temp file
names
The stock ksh88 has a bug that my software hits, and I've established that
neither bash or sh has the same problem, but I have a lot of scripts that
really need ksh and that I don't want to rewrite.
The ksh93 build system is like a like a Dali painting except without the
beauty, so, I'm left with pdksh or zsh in ksh emulation. I havn't tried
pdksh yet and probably don't want it in the long run anyways.
But zsh built without a hitch and doesn't have the bug either.
So, I tried replacing /bin/ksh from my vendors stock ksh88 to zsh for for a
while and this is pretty much the only thing that broke.
The top level login shell will show the value of TTY that I set, but even
with export and/or readonly TTY, the sub shells all show the full
/dev/ttynnn, which breaks all my temp file code.
Thanks
Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!
next reply other threads:[~2005-09-20 20:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-20 20:23 Brian K. White [this message]
2005-09-22 8:38 ` TTY Bart Schaefer
2005-09-22 14:46 ` TTY Brian K. White
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='013301c5be21$34d57610$6600000a@venti' \
--to=brian@aljex.com \
--cc=zsh-users@sunsite.dk \
/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).