[Top][All Lists]

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

Re: inconsistent treatment of backslash-bang

From: Paul Jarc
Subject: Re: inconsistent treatment of backslash-bang
Date: Fri, 18 Jul 2008 10:13:08 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Lawrence D'Oliveiro <address@hidden> wrote:
> pk wrote:
>> This is documented in man bash, and only happens in interactive shells (not
>> scripts).
> I just tried putting my six cases into a script, and I get exactly the same
> sort of output as interactively.

How did you invoke the script?  If you do ". ./script", then the
script commands are being run in the interactive shell, so you'll get
the same behavior as if you typed them directly.  "./script" will run
those commands in a new, non-interactive shell.


reply via email to

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