question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

interpolation (aka command substitution)

See original GitHub issue

Let’s say I have a which command, I want to

$ which code
C:\Program Files (x86)\Microsoft VS Code\bin\code.cmd
$ echo "Here is your path to code: $(which code)"
Here is your path to code: C:\Program Files (x86)\Microsoft VS Code\bin\code.cmd

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
nfischercommented, Mar 14, 2016

I don’t think this is supported yet, but we may be able to add support for this without too much trouble.

@dthree we could probably solve this by looking for this pattern during pre parsing and recursively calling vorpal on the string, right? Or would the vorpal instance not be available there?

0reactions
nfischercommented, Mar 19, 2016

So I looked into this. We would essentially need to instantiate the preparser using the same vorpal instance. From there, the parsing is pretty simple. I can write something up for this. The only messy part is that we have to explicitly pass the vorpal instance around, or make the preparser an attribute of the vorpal instance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shell Command Substitution – interpolate stdout into a ...
This shell interpolation of command standard output into the command line is called Command Substitution and you can read all about it in...
Read more >
What is command substitution in a shell? [duplicate]
Command substitution is an operation with dedicated syntax to both execute a command and to have this command's output hold (stored) by a ......
Read more >
[Python-ideas] String interpolation: environment variables ...
One of the remaining questions for the string interpolation subject is ... of external processes (aka command-substitution) as bash does.
Read more >
[BUG] interpolation (or basic variable substitution) not working ...
Description Hi, To fill this issue (and hoping for a quick fix/explanation ) mainly about interpolation, I'm trying to avoid precedence ...
Read more >
2. Shell Command Language
The '$' character is used to introduce parameter expansion, command substitution, or arithmetic evaluation. If an unquoted '$' is followed by a character...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found