You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
628 B

Short Arguments:
-i Replace stdin (default)
-o Replace stdout (default)
-e Replace stderr (default with feature REPLACE_STDERR)
-I No replace stdin
-O No replace stderr
-E No replace stderr (default without feature REPLACE_STDERR)
Examples:
$ sink -ioe cat # sink steam in,out,err
$ sink -iOE cat # sink stream in. keep stream out and err
$ sink -O cat # sink default streams, but keep out
$ sink -E cat # sink default streams and err
Redundant examples:
$ sink -iI cat # sink default streams and in (I comes after the redundant i)
$ sink -Ii cat # sink default streams except in (i comes after the redundant I)