unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* shell script can't tell if in compile window
@ 2003-06-17  8:11 Dan Jacobson
       [not found] ` <m3he6o8hap.fsf@multivac.cwru.edu>
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Jacobson @ 2003-06-17  8:11 UTC (permalink / raw)
  Cc: robert_hundt

Gentlemen, in the shell originally we could check with test -t or case
$- in *i* or $TERM to tell if we are in an interactive session.

Now compile mode has messed this all up so there is no way to test
anymore.  All tests act like we are just as interactive as if we were
at a shell window. By the way, the painful "check the process tree" method
http://groups.google.com/groups?selm=jyqHa.2671%243Q7.719%40news.cpqcorp.net
still wouldn't enable a shell script to tell the difference between an
{emacs compile window} vs. {emacs shell window, non-emacs shell window}
I bet.

Hmmm, how about you powder users, does (shell-command "echo $TERM")
and (compile "echo $TERM") get real live term names like me (on debian,
no .profile stuff)?  Aren't
these usually exported when emacs encounters them?  Should TERM be
removed from compile mode's environment?

Why does (shell-command "test -t&&tty") get so far to tell me 'not a
tty'!? Wait, (shell-command "/usr/bin/test -t&&tty") doesn't get that
far, good.  Aren't they supposed to act the same?  Ok, do I send a
coreutils bug or a bash bug?? Must be a bash bug because how could
test -t && tty ever pass the first hurdle.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-06-23 16:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-17  8:11 shell script can't tell if in compile window Dan Jacobson
     [not found] ` <m3he6o8hap.fsf@multivac.cwru.edu>
2003-06-18 20:47   ` test -t FD vs. [FD] Dan Jacobson
2003-06-21  4:07     ` Paul Eggert
2003-06-23 16:27       ` Paul Jarc
2003-06-18 21:01   ` shell script can't tell if in compile window Dan Jacobson
2003-06-18 22:22     ` Paul Jarc
2003-06-19  0:43       ` Dan Jacobson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).