bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell script can't tell if in compile window


From: Paul Jarc
Subject: Re: shell script can't tell if in compile window
Date: Tue, 17 Jun 2003 18:34:00 -0400
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Dan Jacobson <jidanni@jidanni.org> wrote:
> case $- in *i*

Works for me.

> (shell-command "echo $TERM")

I get "dumb", which seems right.

> Why does (shell-command "test -t&&tty") get so far to tell me 'not a
> tty'!?

With a single argument, test only tells you whether that arguments is
empty.  You want "test -t 0" (or 1 or 2).

> Wait, (shell-command "/usr/bin/test -t&&tty") doesn't get that
> far, good.

Looks like /usr/bin/test is buggy.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]