bug#7450: cp does not check for errno=EISDIR when target is dangling link

2010-11-21 Thread Jim Meyering
Alan Curry wrote: Марк Коренберг writes: How to reproduce: $ ln -s non-exist tgt [...] $ cp /etc/passwd tgt/ cp: cannot create regular file `tgt/': Is a directory Novices can not understand this message :) The same confusing error message also occurs in the simpler case where the

bug#7450: cp does not check for errno=EISDIR when target is

2010-11-21 Thread Alan Curry
Jim Meyering writes: Thanks for the suggestions. Here's the patch I'm considering: [I first patched copy.c's copy_reg, included at end, but didn't like that as much; the core copying code should not be encumbered like that, and other users of copy.c are not affected. ] Cross-filesystem

bug#7455: cut - lack of --merge-delimiters option

2010-11-21 Thread Leo Lopes
Hi Folks, Sorry to revive a 2-year old thread, but the rest of the thread is easy to find. Exec summary: a user wanted a merge delimiters options, and the discussion kind of digressed to there is a more clever way to do it, and why should this be in cut? The responses in the thread as to why

bug#7455: cut - lack of --merge-delimiters option

2010-11-21 Thread Pádraig Brady
On 21/11/10 01:06, Leo Lopes wrote: Hi Folks, Sorry to revive a 2-year old thread, but the rest of the thread is easy to find. Exec summary: a user wanted a merge delimiters options, and the discussion kind of digressed to there is a more clever way to do it, and why should this be in

bug#7450: cp does not check for errno=EISDIR when target is dangling link

2010-11-21 Thread Paul Eggert
On 11/21/2010 01:49 AM, Jim Meyering wrote: ./cp: invalid destination: `no-such/' a destination with a trailing slash must refer to an existing directory In addition to the problem with mv that Alan mentions, this diagnostic is still confusing, at least for me. Also, what's the

bug#7455: cut - lack of --merge-delimiters option

2010-11-21 Thread Jim Meyering
Pádraig Brady wrote: On 21/11/10 01:06, Leo Lopes wrote: Hi Folks, Sorry to revive a 2-year old thread, but the rest of the thread is easy to find. Exec summary: a user wanted a merge delimiters options, and the discussion kind of digressed to there is a more clever way to do it, and why

bug#7450: cp does not check for errno=EISDIR when target is dangling link

2010-11-21 Thread Jim Meyering
Paul Eggert wrote: On 11/21/2010 01:49 AM, Jim Meyering wrote: ./cp: invalid destination: `no-such/' a destination with a trailing slash must refer to an existing directory In addition to the problem with mv that Alan mentions, this diagnostic is still confusing, at least for me. Also,