• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • FMSLogo
  • Bugs
FMSLogo

"\n" on the commander is treated as whitespace, not a quoted line feed

A Logo programming environment for Microsoft Windows

Brought to you by: david_costanzo
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Feature Requests
    • Bugs
    • Support Requests
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • v_6.06x
  • v_6.07.X
  • v_6.08.X
  • v_6.10.X
  • v_6.11.X
  • v_6.13.X
  • v_6.22.X
  • v_6.25.X
  • v_6.26.X
  • v_6.27.X
  • v_6.28.X
  • v_6.29.X

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#582 "\n" on the commander is treated as whitespace, not a quoted line feed

v_6.06x
closed-fixed
David Costanzo
None
5
2022-02-21
2022-02-21
David Costanzo
No

This is a regression introduced in 8.1.0 in [r5689] in eval.cpp. That change fixed a bug in the handling of commands that are run from the commander on GNU/Linux but introduced a change in the handling of \n.

This bug only impacts instructions that are run from the commander. It does not apply to instructions that are run in procedures.

The bug is that if "\n" is used without being vbarred, it is replaced with a newline BUT the word is not marked as backslashed. When it is later parsed into an instruction, the newline acts like a normal newline and is not part of a preceding word.

Also introduced but this change: trying to execute an instruction that ends in a backslash can cause FMSLogo to crash in rare cases.

How Reproducible:
Every Time

Steps to Reproduce

  1. Enter the following in the commander SHOW "a\nb
  2. Press the "Execute" button

What Happens:
FMSLogo prints "a" on a line by itself, then prints "I don't know how to b" in red text. That is, it acts is if SHOW "a b were entered.

Expected Result:
FMSLogo prints "a" on a line by itself, then prints "b" on a line by itself.

Related

Commit: [r5689]

Discussion

  • David Costanzo

    David Costanzo - 2022-02-21
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2022-02-21

    I have committed a fix for this as [r5891]. I expect to release this as 8.3.1 (a micro version) since it was a recent regression.

    Unfortunately, automated testing is currently not possible because neither the commander's edit box nor the commander history is accessible.

     

    Related

    Commit: [r5891]

    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2022-02-21
    • status: open-accepted --> closed-fixed
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
mdb logo