Skip to content

[Bug] Need to defend against blanks in path to jflex bash script [sf#83] #85

@lsf37

Description

@lsf37

*Reported by anonymous on 2007-01-07 14:44 UTC
The bash script distributed with jflex contains the following line inside the loop that turns a symbolic link to the script into a real path:

[ ${newprg} = ${newprg#/} ] && newprg=${PRG%/*}/${newprg}

If the path to jflex contains a blank, then this line fails with the error message "too many arguments".

What's needed (I believe) is to change this line to

[ "${newprg}" = "${newprg#/}" ] && newprg=${PRG%/*}/${newprg}

A small thing, but it worried me enough to spend the time to track it down to be sure something significant wasn't going on, so I expect it's worth fixing.

-- jcbeatty@uwaterloo.ca

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions