interpolation (aka command substitution)
See original GitHub issueLet’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:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
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.