#1458 Bash breaks if..

Bug
closed-works-for-me
nobody
None
5
2013-07-21
2013-03-24
Matt
No

Hi, the following line in a bash script seems to break stuff:

if [[ $PWD == /path/to/bla ]]; then path='N:\Path\'; fi

\ should not escape inside single quoted strings in a bash script?

(issue was noticed in the notepad++ color theme, and apparently it might be a scintilla issue?)

thanks

Discussion

  • Kein-Hong Man

    Kein-Hong Man - 2013-03-24

    I can confirm this breaks on notepad++ 5.9. But it works fine on SciTE ~3.2.2 for me. Can you try your snippet on a recent SciTE? If SciTE works fine, then I don't believe it's Scintilla's problem.

     
  • Kein-Hong Man

    Kein-Hong Man - 2013-03-25

    The latest npp-6.3.1 also has this problem. Their Scintilla code is at least about 6 months old, because LexBash got some important updates around 2012-09, including a fix for single quoted strings. Please notify the npp folks. It's possible they are pulling from the incorrect hg URL, since the URL for the hg repo was changed around 3.2.3 and I wasn't pulling new stuff from SF for a while either.

     
  • Neil Hodgson

    Neil Hodgson - 2013-07-21
    • status: open --> closed-works-for-me
     

Log in to post a comment.