#187: macrovariable passed on the command line (-D option) --------------------------+------------------------------------------------- Reporter: michel | Owner: sebastien Type: bug | Status: new Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Keywords: | --------------------------+------------------------------------------------- It works for numerical values but not for strings.
In the test.mod file:
@#if var1 == "a" @#echo "OK" @#else @#echo "NO" @#endif
Calling dynare test -Dvar1=a
will fail with with unknown variable a
(without any Dynare instruction, it is normal that test.mod fails at the end, but with an error message about unexpected $end)
#187: macrovariable passed on the command line (-D option) --------------------------+------------------------------------------------- Reporter: michel | Owner: houtanb Type: bug | Status: accepted Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Keywords: | --------------------------+------------------------------------------------- Changes (by houtanb):
* owner: sebastien => houtanb * status: new => accepted
#187: macrovariable passed on the command line (-D option) ---------------------------+------------------------------------------------ Reporter: michel | Owner: houtanb Type: bug | Status: closed Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Resolution: fixed | Keywords: ---------------------------+------------------------------------------------ Changes (by houtanb):
* status: accepted => closed * resolution: => fixed
Comment:
Fixed in commit: 6844e2bef7410e821f3a7c9113a1712550c65cff
#187: macrovariable passed on the command line (-D option) ---------------------------+------------------------------------------------ Reporter: michel | Owner: houtanb Type: enhancement | Status: closed Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Resolution: fixed | Keywords: ---------------------------+------------------------------------------------ Changes (by houtanb):
* type: bug => enhancement
#187: macrovariable passed on the command line (-D option) ---------------------------+------------------------------------------------ Reporter: michel | Owner: houtanb Type: bug | Status: closed Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Resolution: fixed | Keywords: ---------------------------+------------------------------------------------ Changes (by houtanb):
* type: enhancement => bug