* TTY
@ 2005-09-20 20:23 Brian K. White
2005-09-22 8:38 ` TTY Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Brian K. White @ 2005-09-20 20:23 UTC (permalink / raw)
To: zsh-users
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!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: TTY
2005-09-20 20:23 TTY Brian K. White
@ 2005-09-22 8:38 ` Bart Schaefer
2005-09-22 14:46 ` TTY Brian K. White
0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 2005-09-22 8:38 UTC (permalink / raw)
To: zsh-users
On Sep 20, 4:23pm, Brian K. White wrote:
}
} How can I stop zsh, while in ksh emulation mode, from overwriting $TTY ?
By editing the source code and recompiling. Approximately line 720 in
Src/params.c.
The following variables are unconditionally set regardless of emulation:
BAUD
CPUTYPE
FCEDIT
HOST
KEYTIMEOUT
LISTMAX
LOGCHECK
LOGNAME
MACHTYPE
MAILCHECK
OSTYPE
TIMEFMT
TMPPREFIX
TTY
VENDOR
WATCHFMT
ZSH_NAME
ZSH_VERSION
signals
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: TTY
2005-09-22 8:38 ` TTY Bart Schaefer
@ 2005-09-22 14:46 ` Brian K. White
0 siblings, 0 replies; 3+ messages in thread
From: Brian K. White @ 2005-09-22 14:46 UTC (permalink / raw)
To: zsh-users
----- Original Message -----
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: <zsh-users@sunsite.dk>
Sent: Thursday, September 22, 2005 4:38 AM
Subject: Re: TTY
> On Sep 20, 4:23pm, Brian K. White wrote:
> }
> } How can I stop zsh, while in ksh emulation mode, from overwriting $TTY ?
>
> By editing the source code and recompiling. Approximately line 720 in
> Src/params.c.
got it
thanks much
Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO FreeBSD #callahans Satriani Filk!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-22 14:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-20 20:23 TTY Brian K. White
2005-09-22 8:38 ` TTY Bart Schaefer
2005-09-22 14:46 ` TTY Brian K. White
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).