RexxLA / NetRexx

Other
6 stars 0 forks source link

address variable interpolation works different from classic rexx #56

Closed rvjansen closed 10 months ago

rvjansen commented 11 months ago

It seems that the 'abuttal' concatenation (used for variable interpolation here) works different in our 'address'

/* rexx build the pdf */
trace results

chapters = 'foreword rationale social_issues'
do i=1 to words(chapters)
  file=word(chapters,i)
  'pandoc -f markdown -t latex --top-level-division=chapter ../../'file'.md -o' file'.tex'
end

/* build the document. at least 2 passes needed for coherence of contents and index */
do i=1 to 2
  'xelatex -output-driver="xdvipdfmx -i dvipdfmx-unsafe.cfg -q -E" -shell-esc perfbook.tex'
  say RC
  'makeindex perfbook'
  say RC
end

'open perfbook.pdf'

This works as expected in ooRexx. It should work in NetRexx, however:

Copyright (c) RexxLA, 2011,2023.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program build.rexx
  7 +++   'pandoc -f markdown -t latex --top-level-division=chapter ../../'file'.md -o' file'.tex'
    +++                                                                    ^^^^
    +++ Error: Unexpected token after keyword
Processing of 'build.rexx' failed [one error]
remesm commented 10 months ago

I pushed a fix for the issue.

Marc

rvjansen commented 10 months ago

brilliant! Works.