dspinellis / dgsh

Shell supporting pipelines to and from multiple processes
http://www.spinellis.gr/sw/dgsh/
Other
323 stars 23 forks source link

sgsh/bin/cat isn't plug compatible with /bin/cat #6

Closed dspinellis closed 7 years ago

dspinellis commented 7 years ago
$ cat /etc/motd
Usage cat [-b size] [-i file] [-IMs] [-o file] [-m size] [-t char]
-b size Specify the size of the buffer to use (used for stress testing)
-f      Overflow buffered data into a temporary file
-I      Input-side buffering
-i file Gather input from specified file
-m size[k|M|G]  Specify the maximum buffer memory size
-M      Provide memory use statistics on termination
-o file Scatter output to specified file
-p d1[,d2...]   Permute inputs to specified outputs
-s      Scatter the input across the files, rather than copying it to all
-T dir  Specify directory for storing temporary file
-t char Process char-terminated records (newline default)
mfragkoulis commented 7 years ago

sgsh/bin/cat is in fact sgsh-tee. So, the equivalent of /bin/cat file is sgsh/bin/cat -i file .

Let's discuss what's best to do:

dspinellis commented 7 years ago

Our cat should be at least compatible with POSIX cat, which is very simple.

dspinellis commented 7 years ago

Covered by #11.