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