bug#11816: sort -o: error comes late if opening the outfile fails

2012-06-29 Thread Pádraig Brady
On 06/29/2012 12:54 PM, Bernhard Voelker wrote: > If opening the output file for writing is not possible - e.g. because the user > doesn't have sufficient privileges, then sort issues an error. The problem > is that the whole - then useless - computation is already done. > > In the following littl

bug#11816: sort -o: error comes late if opening the outfile fails

2012-06-29 Thread Bernhard Voelker
If opening the output file for writing is not possible - e.g. because the user doesn't have sufficient privileges, then sort issues an error. The problem is that the whole - then useless - computation is already done. In the following little example, it took ~15s to sort the data, and then to real

bug#11809: document "So how do we just simply make a backup file?"

2012-06-29 Thread Bernhard Voelker
On 06/29/2012 10:48 AM, Jim Meyering wrote: > Here's the doc patch I suggested, but I'll hold off for now. > I'd like to hear if anyone thinks it's worth adding a new option, > which would obviate such a script. I think it's okay, that special backup case is described in the info page of cp twice

bug#11809: document "So how do we just simply make a backup file?"

2012-06-29 Thread Jim Meyering
Bernhard Voelker wrote: > On 06/29/2012 10:48 AM, Jim Meyering wrote: >> Here's the doc patch I suggested, but I'll hold off for now. >> I'd like to hear if anyone thinks it's worth adding a new option, >> which would obviate such a script. > > I think it's okay, that special backup case is describ

bug#11809: document "So how do we just simply make a backup file?"

2012-06-29 Thread Jim Meyering
Jim Meyering wrote: > jida...@jidanni.org wrote: >> (info "(coreutils) Backup options") should add some examples, for >> "So how do we make a backup file of m?" >> $ ls >> m >> $ cp -b m m #no go > > Thanks for the suggestion. > I use this zsh/bash shell function: > > backup () > { > local i >

bug#11809: document "So how do we just simply make a backup file?"

2012-06-29 Thread jidanni
JM> I deliberately restricted the "make backup only" functionality to the JM> very limited case that is documented. Well you had better explicitly document that it does not work with all forms in the cp SYNOPSIS, else people will think it is broken...