Skip to content

[BUG] Getting started info improve escaped quotes #70

@versionbayjc

Description

@versionbayjc

MATFrost version

0.4.0

MATLAB version

R2022b

Julia version

1.11.4

MinGW version

n/a

What happened?

I was trying to get started with MATFrost on Windows, macOS and linux, just seeing how far I would get and noticed a quoting issue in the first line of getting started. I think the double quote " end should move after the Pkg.instantiate(), and while changing this, I believe it is better to escape the " with \, such that this part of the instructions would work for more than Windows, e.g. Linux. Even though Linux is not yet supported officially, still probably best to use syntax that works for multiple os'es where possible.

On Windows, this works:

>> system('julia -e "print(""Hello Julia\n"")"');
Hello Julia

but this also works:

>> system('julia -e "print(\"Hello Julia\n\")"');
Hello Julia

The former is incompatible with Linux (or at least with bash and zsh as for my testing), btw I used the | cat to get rid of the color formatting that is not rendered in MATLAB Command Window

>> system('julia -e "print(""Hello Julia\n"")" | cat');
ERROR: ParseError:
# Error @ none:1:13
print(Hello Julia\n)
#           └─────┘ ── Expected `)`
Stacktrace:
 [1] top-level scope
   @ none:1

but the \" variant does work:

>> system('julia -e "print(\"Hello Julia\n\")" | cat');
Hello Julia

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions