[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] linter definitions
From: |
Mark Oteiza |
Subject: |
Re: [Nano-devel] [PATCH] linter definitions |
Date: |
Sun, 19 Apr 2015 02:18:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Mike Frysinger <address@hidden> writes:
> On 18 Apr 2015 18:13, Mark Oteiza wrote:
>> where sh is linked to bash, nano does not
>> recognize the output.
> # touch test.sh
> # ln -sf bash /bin/sh
> # sh -n test.sh
>
> # echo '(' > test.sh
> # sh -n test.sh
> test.sh: line 2: syntax error: unexpected end of file
> # bash -n test.sh
> test.sh: line 2: syntax error: unexpected end of file
> # dash -n test.sh
> test.sh: 2: test.sh: Syntax error: end of file unexpected
Notice the difference in output between dash and bash. nano does not
know how to parse the output from bash because of the word "line" that
bash prints with the line number.