-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command redirection operators #5349
Comments
I really like
|
It would probably be more clear to have
|
I hate that button placement. |
This would be problematic since Anyway, the issues I see with such dict-based syntax are:
|
It feels strange to pipe a command into a dictionary. Maybe something like
|
Is this going to happen any time soon? |
We now have the julia> :(`echo hello` |> 1=>"echo.out", 2=>"echo.err") |> dump
Expr
head: Symbol tuple
args: Array(Any,(2,))
1: Expr
head: Symbol =>
args: Array(Any,(2,))
1: Expr
head: Symbol call
args: Array(Any,(3,))
typ: Any
2: ASCIIString "echo.out"
typ: Any
2: Expr
head: Symbol =>
args: Array(Any,(2,))
1: Int64 2
2: ASCIIString "echo.err"
typ: Any
typ: Any |
Yes, thanks for bringing this up. I haven't worked it out fully, but I feel the best option is to make
where |
The current state of command redirections needs revision:
.>
) and for appending (>>
) must follow>
and not be used anymore for redirection2>&1
and&>
can be performed.The two issues are related; the easiest solution to the first is of course to add
|.>
and|>>
operators, but I doubt anyone likes that, and it still doesn't solve the second issue.In #5344, Stefan has suggested
as a possible syntax. Some time ago (#1271) I proposed using Dicts, which using a more recent syntax could read e.g.:
But I haven't given it much thought, and the second one is maybe a little weird. More opinions, proposals, comments etc.?
The text was updated successfully, but these errors were encountered: