Re:/usr/bin/time: not the command you think you know
by ramshorns on Monday March 06, 2017 @11:29PM
(#13808292)
It looks like
would actually give the output of foo as input to bar, since the time statistics go to stderr.
[ Parent
| on HN ]
Re:/usr/bin/time: not the command you think you know
by dotancohen on Tuesday March 07, 2017 @01:42AM
(#13808704)
Since it is not an error, what we really need is a stdmeta file descriptor:
http://unix.stackexchange.com/questions/197809/propose-addit...
Re:/usr/bin/time: not the command you think you know
by eriknstr on Tuesday March 07, 2017 @05:08AM
(#13809383)
I've been thinking a bit about this before and I think that not just one but a whole lot of additional streams would be useful. By default all commands would still use stdout and stderr only but you would be able to tell them to use other streams as well for their various data.
Furthermore, each stream should be possible to pipe to a different process if you wish independently of the other streams.
To a small degree this might be possible already with named pipes.
Re:/usr/bin/time: not the command you think you know
by ncw33 on Tuesday March 07, 2017 @09:03AM
(#13810340)
It is possible already - you can do `command 2>&4` to separate the output from one command in a pipeline into its own stream, then do `command2 <&4` to pull from the further down the pipeline.
Re:/usr/bin/time: not the command you think you know
by eriknstr on Tuesday March 07, 2017 @10:54PM
(#13817752)
I would like more pipes for each process.
This would allow many things, for example searching for multiple terms across all files in the whole file system in one go without opening each file more than once, and then grouping the different results together in accordance with the term that they matched.
Re:/usr/bin/time: not the command you think you know
by Klathmon on Tuesday March 07, 2017 @07:29AM
(#13809839)
Honestly this is one area where PowerShell kind of nailed it.
I still don't use it enough, but when it comes to scripting PS's objects beat the hell out of these
Re:/usr/bin/time: not the command you think you know
by MrQuincle on Tuesday March 07, 2017 @05:36AM
(#13809476)
I just started playing around with IPC ideas with processes tellin each other which flags they would like: https://github.com/mrquincle/bipipes
I think socket pairs would be great for it.
Nothing implemented yet!