[ https://issues.apache.org/jira/browse/TINKERPOP-1940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16442412#comment-16442412 ]
Robert Dale commented on TINKERPOP-1940: ---------------------------------------- I disagree. {noformat}`--` is a special case that says ignore any `-` or `--` args after this. It does not allow you to pass arguments starting with `-` to other parameters. The normal way of referencing a file starting with `-`, as goofy as that may be, is to use `./`: `bin/gremlin.sh --interactive ./-l` {noformat} You can try to 'fix' it if you want, but it's really not standard and I don't think it's worth the time and effort even as trivial as it may be. > Command parsing problem with files for long options in gremlin.sh > ----------------------------------------------------------------- > > Key: TINKERPOP-1940 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1940 > Project: TinkerPop > Issue Type: Improvement > Components: console > Affects Versions: 3.2.8 > Reporter: stephen mallette > Assignee: stephen mallette > Priority: Minor > Fix For: 3.4.0, 3.2.9, 3.3.3 > > > A bit of an edge case, but shows that there's still something amiss in the > command parser: > {code} > $ echo '1+1' > '-l' > $ cat -- -l > 1+1 > $ bin/gremlin.sh --interactive -l > bin/gremlin.sh: line 85: $3: unbound variable > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)