[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 <gherson@snet.net> 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