Menu

#2298 call has reverted to the old style syntax

None
closed-fixed
nobody
Regression (1)
2020-12-07
2020-08-21
Anonymous
No

cat test.plt
print("test $1")

Calling the avobe file from gnuplot results in
test
According to the old style syntax for call.
In previous versions this would have resulted in
test $1
so this is a regression.

Adding a second '$' works for strings, print("test $$1") does print test $1.

But this second approach fails for expanding macros.

Discussion

  • Ethan Merritt

    Ethan Merritt - 2020-08-21

    The behavior in the previous version (5.2.8) was dependent on configuration option
    --enable-backwards-compatibility

    But you are correct that the intended full deprecation of the old syntax in 5.4 went wrong. The configuration option was removed, but the test for it in the code ended up essentially hard-coding the "enable" setting rather than the intended "disable". Oops.

     
  • Ethan Merritt

    Ethan Merritt - 2020-08-29
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2020-12-07
    • Status: pending-fixed --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.