Replies: 1 comment 1 reply
|
Hm… I don't use multiline commands much in other shells, but some of that is because of the issues you pointed out. The backslash is used widely, though, so if I were just trying out the language for the first time, I would almost certainly try that first and be confused and/or annoyed by the shell not aligning with my expectation. PowerShell's backtick annoys me every time I need to use it, for example. What if a pipe followed by a newline was understood by the readline as a soft return? That wouldn't cover the case of a lot of flags, but it's intuitive (to me), and it doesn't require extra keystrokes or remembering which incantation to use. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have an idea, and it might be a bad one, but presently if we want to span a command line over multiple lines we have to terminate each line with
\for example:It's ugly, easy to forget and fiddly to make changes to.
So I'm proposing a block token:
{+and+}. For exampleThis would also work for single commands that take a lot of parameters, eg
The basic premise of
{+/+}would be that it converts\nto\sfor commands and parameters.The key question here is this: would this feature...
All reactions