mctools / ncrystal

NCrystal : a library for thermal neutron transport in crystals and other materials
https://mctools.github.io/ncrystal/
Other
41 stars 18 forks source link

Explicitly forbid # and $ in cfg-strings #153

Closed tkittel closed 11 months ago

tkittel commented 1 year ago

# and $ seems obvious candidates for exclusion from cfg-strings, since they might be troublesome in various contexts (e.g. bash scripts, or .ncmat data where parts of a cfg-string after the # would be considered comments). This was noted in #144 .

tkittel commented 1 year ago

Relevant place in code: https://github.com/mctools/ncrystal/blob/master/ncrystal_core/include/NCrystal/internal/NCCfgTypes.hh#L43

tkittel commented 11 months ago

Implemented in v3.8.0, closing!