[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] linter definitions
From: |
Mike Frysinger |
Subject: |
Re: [Nano-devel] [PATCH] linter definitions |
Date: |
Sun, 19 Apr 2015 03:02:25 -0400 |
On 19 Apr 2015 02:18, Mark Oteiza wrote:
> 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.
then nano is broken and it needs to be fixed ?
-mike
signature.asc
Description: Digital signature