bug-bash
[Top][All Lists]
Advanced

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

Re: set -n ruins shell


From: Paul Jarc
Subject: Re: set -n ruins shell
Date: Thu, 20 Sep 2001 00:49:19 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

George Herson <address@hidden> wrote:
> $ bash -c 'set -n; . /tmp/tmpscript2'
> $ bash -n /tmp/tmpscript2
> /tmp/tmpscript2: line 1: syntax error near unexpected token `(hello'
> /tmp/tmpscript2: line 1: `echo (hello'
>
>
> Thanks.  The first form didn't have output but the second did.

Oops, right.  The command to source the script doesn't get executed,
because set -n is in effect.


paul



reply via email to

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