Re: feature request: zero-terminated lines for comm

2007-09-20 Thread Bob Proulx
Steve Ward wrote: (This is slightly off topic, and a late reply) I'm curious who's responsible for deciding the standards of filenames. Is it kernel people, fs people, a standards group, or other? At this point it is defined by legacy behavior. Legacy behavior has caused this to be

Re: feature request: zero-terminated lines for comm

2007-09-10 Thread Pádraig Brady
Lasse Kliemann wrote: How complicated it would be to add a `-z' or `-0' switch to `comm' in order to allow zero-terminated lines? The `sort' command, for example, allows this, and this is very useful when dealing with filenames. Or is such functionality already provided in a different

Re: feature request: zero-terminated lines for comm

2007-09-10 Thread James Youngman
On 9/10/07, Brian Dessent [EMAIL PROTECTED] wrote: James Youngman wrote: While that is true, those utilities already coped with the space character (for example, with find -print and xargs -L). xargs cannot cope with filenames containing spaces without -0/-print0. $ echo -e one

Re: feature request: zero-terminated lines for comm

2007-09-10 Thread Pádraig Brady
Pádraig Brady wrote: Lasse Kliemann wrote: How complicated it would be to add a `-z' or `-0' switch to `comm' in order to allow zero-terminated lines? The `sort' command, for example, allows this, and this is very useful when dealing with filenames. Or is such functionality already

feature request: zero-terminated lines for comm

2007-09-09 Thread Lasse Kliemann
How complicated it would be to add a `-z' or `-0' switch to `comm' in order to allow zero-terminated lines? The `sort' command, for example, allows this, and this is very useful when dealing with filenames. Or is such functionality already provided in a different way?

Re: feature request: zero-terminated lines for comm

2007-09-09 Thread John Cowan
Lasse Kliemann scripsit: How complicated it would be to add a `-z' or `-0' switch to `comm' in order to allow zero-terminated lines? The `sort' command, for example, allows this, and this is very useful when dealing with filenames. Not complicated, but it needs better justification, I

Re: feature request: zero-terminated lines for comm

2007-09-09 Thread John Cowan
James Youngman scripsit: If such concern is excessive, it would not have been necessary for POSIX to invent find ... -exec ... {} +. Nor for GNU to invent find -print0 or sort -z. It's not quite so simple. find -print0 and xargs -print0, its counterpart, let people deal with pathnames that

Re: feature request: zero-terminated lines for comm

2007-09-09 Thread James Youngman
On 9/10/07, John Cowan [EMAIL PROTECTED] wrote: James Youngman scripsit: If such concern is excessive, it would not have been necessary for POSIX to invent find ... -exec ... {} +. Nor for GNU to invent find -print0 or sort -z. It's not quite so simple. find -print0 and xargs -print0,

Re: feature request: zero-terminated lines for comm

2007-09-09 Thread Brian Dessent
James Youngman wrote: While that is true, those utilities already coped with the space character (for example, with find -print and xargs -L). xargs cannot cope with filenames containing spaces without -0/-print0. $ echo -e one two\nthree four | xargs showargs argv[0] = 'showargs' argv[1] =