Re: paste(1): default to stdin if no files given

2017-12-30 Thread Philip Guenther
On Sat, 30 Dec 2017, Klemens Nanni wrote: > On Fri, Dec 29, 2017 at 03:55:10PM +0200, Lauri Tirkkonen wrote: > > Currently paste(1) silently does nothing if it's given no file > > arguments: > > > > % printf 'hello\nworld\n'|paste > > % > That's a bug, FWIW, FreeBSD has it fixed. > > > I

Re: paste(1): default to stdin if no files given

2017-12-30 Thread Lauri Tirkkonen
On Sat, Dec 30 2017 19:41:24 +0100, Klemens Nanni wrote: > On Fri, Dec 29, 2017 at 03:55:10PM +0200, Lauri Tirkkonen wrote: > > Currently paste(1) silently does nothing if it's given no file > > arguments: > > > > % printf 'hello\nworld\n'|paste > > % > That's a bug, FWIW, FreeBSD has it

Re: paste(1): default to stdin if no files given

2017-12-30 Thread Klemens Nanni
On Fri, Dec 29, 2017 at 03:55:10PM +0200, Lauri Tirkkonen wrote: > Currently paste(1) silently does nothing if it's given no file > arguments: > > % printf 'hello\nworld\n'|paste > % That's a bug, FWIW, FreeBSD has it fixed. > I often do things like 'ps -p $(pgrep sh | paste -sd,)' and

paste(1): default to stdin if no files given

2017-12-29 Thread Lauri Tirkkonen
Currently paste(1) silently does nothing if it's given no file arguments: % printf 'hello\nworld\n'|paste % I often do things like 'ps -p $(pgrep sh | paste -sd,)' and forget the "-" argument. Some other systems (gnu coreutils, illumos, perhaps more) default to reading from stdin if no