--- Begin Message ---
Subject: |
Please make "omitting directory" message clearer |
Date: |
Thu, 17 Nov 2016 01:44:56 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Hello,
Every year, my students are completely taken aback when trying to copy a
directory:
$ cp /foo/bar .
omitting directory /foo/bar
The problem is that the error message is not explicit at all about what
issue cp actually encountered: "yes it is a directory, so what?!"
Could this be changed into for instance:
$ cp /foo/bar .
not recursing into directory /foo/bar by default
which will help them figure out they just need to use -r.
Samuel
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#24958: Please make "omitting directory" message clearer |
Date: |
Sat, 19 Nov 2016 13:31:35 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 17/11/16 02:59, Bernhard Voelker wrote:
> On 11/17/2016 03:40 AM, Pádraig Brady wrote:
>> Right that's better for cp, though inaccurate for install(1).
>
> Good point!
>
>> I'll do this I think:
>>
>> if (install)
>> "omitting directory '/foo/bar'"
>> else /* cp */
>> "-r not specified; omitting directory '/foo/bar'"
>
> I like it. Please don't forget 'tests/cp/link-deref.sh'.
I'll push the attached later.
Marking this bug as done.
thanks,
Pádraig
cp-dir-error.patch
Description: Text Data
--- End Message ---