zsh-users
 help / color / mirror / code / Atom feed
* 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

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).