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 05:01:42 +0800
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

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

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

Paul> Works for me.

Not in a script:
case $- in *i*)read -p Age: age;esac
OK, one must do ". ./script"

>> (shell-command "echo $TERM")

Paul> I get "dumb", which seems right.

but that's the same for both *shell* and *compile*

I want to write a script that can do
read -p Age: age
only if the user can answer it.




reply via email to

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