help-bash
[Top][All Lists]
Advanced

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

Re: feature request : at ' unexpected end of fille ' error msg append al


From: alex xmb sw ratchev
Subject: Re: feature request : at ' unexpected end of fille ' error msg append also the still-open direcrive
Date: Thu, 5 Sep 2024 18:00:00 +0200

On Thu, Sep 5, 2024, 2:35 PM Zachary Santer <zsanter@gmail.com> wrote:

> On Fri, Aug 16, 2024 at 9:26 AM Chet Ramey <chet.ramey@case.edu> wrote:
> >
> > On 8/16/24 8:49 AM, alex xmb sw ratchev wrote:
> > > .. extend that err msg to include info where what is open
> > >
> > > .. i had some times it wasnt easy to see where what is open
> > > just like with my same - hour post
> >
> > bash-5.3 includes line number information where the unclosed construct
> > (case/select/for/if/while/until) begins in error messages. For example,
> >
> > for f in 1 2 3 4
> > do
> >         while true; do
> >                 echo abcde
> >         done
> >
> > produces
> >
> > x3: line 6: syntax error: unexpected end of file from command on line 1
>
> The latest devel branch push also "track[s] initial line number of
> `{'', `(', and `[[' compound commands" for these error messages.
>
> Would it also be useful to track where double- and single-quoted
> strings began? An editor with shell syntax highlighting should point
> that out, though I've managed to trick the syntax highlighting in the
> gedit that comes with RHEL 7 with some pretty standard stuff.
>

my lil about editor highlighting .. for me and my usual weird codings its
overbugged , not right working

i edit as plain and also non formatted
cause editors dont suppory my tabbing

  if a ; then
 if b ; then
cmd
 fi
  fi

the logic is , type most important codes , logically , not thousand tabbed
. but none
the structures like if etc , those have +1

and again the vim coloring ( and prolly nvim ) are just bugged
like , the bash-completiton shtuff

How about here documents? Anything else?
>


reply via email to

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