qi(1): Quirks
#153
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Redirects and pipes should be atomic—one should wait for another to conclude before beginning—as it would allow an interesting flow of data (including the ability to pipe a stream and redirect a file into a utility).
What do you mean by this? Because I take it to mean that if you have:
Then
arruns, its output is buffered and then sent tobar, which then does the same thing tocar, which then outputs to stdout or what have you. The problem with this is ifaroutputs 2 gigabytes of data, now you have 2 gigabytes of data sitting in memory, andarmust generate all of it beforebarorcarcan run at all. Only one factory worker on the assembly line can move their arms at a time and you produce only onecarper day.In this example:
ar | bar | car <filedata flows through the pipes to
carfirst, before attempting to read infileusing a redirect tocar. This assumescarattempts two reads in the course of its execution.