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: Dan Jacobson
Subject: Re: shell script can't tell if in compile window
Date: Thu, 19 Jun 2003 08:43:29 +0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

>>>>> "P" == Paul Jarc <prj@po.cwru.edu> writes:

P> Dan Jacobson <jidanni@jidanni.org> wrote:
>> I want to write a script that can do
>> read -p Age: age
>> only if the user can answer it.

P> As I said, you want "test -t 0".

$ emacs -q -eval '(compile "test -t 0&&read -p age: age||echo cant
answer here so dont ask")'
You are giving me the wrong test then. It is still asking.
I need a test that can tell a compile window from windows that can
interact.




reply via email to

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