Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 426
    • Issues 426
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #316
Closed
Open
Issue created Nov 24, 2016 by Mark OLESEN@markMaintainer

foamDictionary cannot handle keywords with '.' in their name

Dictionary now uses . for its scoping parameter (previously was :, which is still partially supported). This means that a keyword with a dot . is falsely interpreted as being scoped.

So this works:

foamDictionary -entry geometry.refinementBox  system/snappyHexMeshDict 

Whereas none of these work:

foamDictionary -entry geometry:motorBike.obj  system/snappyHexMeshDict 
foamDictionary -entry geometry.motorBike.obj  system/snappyHexMeshDict 
foamDictionary -entry 'geometry\.motorBike.obj' system/snappyHexMeshDict 
foamDictionary -entry 'geometry\\.motorBike.obj' system/snappyHexMeshDict 
foamDictionary -entry 'geometry\\\.motorBike.obj' system/snappyHexMeshDict 

I guess it should handle backslash-escaped values, or be able to specify an alternative scoping character:

foamDictionary -entry 'geometry:motorBike.obj' -scope ':' system/snappyHexMeshDict 
foamDictionary -entry 'geometry&motorBike.obj' -scope '&' system/snappyHexMeshDict
Assignee
Assign to
Time tracking