-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Realise a string with context #7654
Copy link
Copy link
Open
Labels
cliThe old and/or new command line interfaceThe old and/or new command line interfacefeatureFeature request or proposalFeature request or proposalnew-cliRelating to the "nix" commandRelating to the "nix" commandreplThe Read Eval Print Loop, "nix repl" command and debuggerThe Read Eval Print Loop, "nix repl" command and debugger
Metadata
Metadata
Assignees
Labels
cliThe old and/or new command line interfaceThe old and/or new command line interfacefeatureFeature request or proposalFeature request or proposalnew-cliRelating to the "nix" commandRelating to the "nix" commandreplThe Read Eval Print Loop, "nix repl" command and debuggerThe Read Eval Print Loop, "nix repl" command and debugger
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
⚖ To discuss
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Sometimes I just want to paste a string into my shell and run it.
For example
Describe the solution you'd like
In the repl, when
:bevaluates its argument to a string, continue to build the string context. Maybe print the raw string? (ie not in string literal syntax)In the cli, add a flag to build a string? An
nix evalflag? Anix buildflag?e.g.
or perhaps something like
or something like
--print=rawor--print=json.Describe alternatives you've considered
a. Keep digging through
toplevelinstead of building the option I wish to inspect.b. Write ad hoc script builder in the repl. This is not the same, as the result is a bit harder to read, and the script derivation is slightly cumbersome to write.
Additional context
Priorities
Add 👍 to issues you find important.