Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 480
    • Issues 480
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1011

odd behaviour in bash completions

Could be a bash bug or something else. With a local copy of foamToVTK with a -legacy option, the completion function triggers a syntax error.

foamToVTK -le<TAB>

Results in

foamToVTK -lebash: [: -n: integer expression expected
gacy 

The offending line is this one in bash_completion:

    elif [ -n "$cur" -a "${cur#-}" = "${cur}" ]
    then
        # Already started a (non-empty) word that isn't an option
Assignee
Assign to
Time tracking