Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#137 Coloring Issues w/ sh script and `` command substitution

colorer-take5
open-invalid
Igor Russkih
5
2010-12-05
2008-05-08
CS Jean
No

Hi,

I have a coloring issue with the following line:

RET=`sed -n -e "s/dssWorkflowMgr.tableRecordLengths.${1}[[:space:]]*|[[:space:]]*\([0-9][0-9]"'*\)[[:space:]]*$/\1/p' ${DSSFILE}`

Where the editor doesn't recognize the end ` and colors (yellow) in my case until the end of the script.

Thanks.

Claude.

Discussion

  • Igor Russkih
    Igor Russkih
    2010-12-05

    Are you sure your expression is valid?
    Why do you have /p' with a single quote at the end, although there should be double quotation " there?

    RET=`sed -n -e "s/dssWorkflowMgr.tableRecordLengths.${1}[[:space:]]*|[[:space:]]*\([0-9][0-9]"'*\)[[:space:]]*$ / \1/p" ${DSSFILE}`

    is parsed fine consequently.

     
  • Igor Russkih
    Igor Russkih
    2010-12-05

    • status: open --> open-invalid