Skip to content

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