Giter VIP home page Giter VIP logo

Comments (4)

laurence-nearform avatar laurence-nearform commented on August 24, 2024

Variables are properly tokenised in Murex so they don't need to be quoted. This solves problems like spaces in file names. So in your example ${ out "a z" } is treated as a single string "a z".

If you want to expand variables to cover multiple parameters then you need the @ sigil instead. For example:

foobar = %[a, z]
cat @foobar

Similarly, sub-shells also support the different sigils:

cat @{ %[a, z] }

It's worth noting that @{ out "a z" } will still be interpreted as "a z" because you're outputting a string with a space in (ie the output of out is a single line string rather than an array).

from murex.

laurence-nearform avatar laurence-nearform commented on August 24, 2024

This point is touched on in: https://murex.rocks/tour.html#sub-shells but I could do with making that clearer.

It looks like I copied the $ doc but forgot to change it for @ 🤦 https://murex.rocks/parser/array.html

I do also plan on writing some dedicated documentation for sub-shells too

from murex.

tiymat avatar tiymat commented on August 24, 2024

D'oh! I see now this was largely a failure on my part to read/understand the relevant docs. Thanks for the help.

from murex.

laurence-nearform avatar laurence-nearform commented on August 24, 2024

@tiymat I think this is a failure of the docs not being clearer.

from murex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.