Cp can't hardlink unqualified wildcard

Lawrence Mayer lawmaya@gmx.com
Sat Oct 20 20:35:00 GMT 2012

On 121020 12:35, Eric Blake wrote:
> On 10/20/2012 12:50 PM, Lawrence Mayer wrote:
>> Cp can't hardlink unqualified wildcard
>> cp -l * DIRECTORY
>> fails with error 'cp: target `file' is not a directory'
> Most likely, this is not an error in cp, but a misunderstanding on your
> part about how globbing operates.  I bet you have a file in your current
> directory whose name starts with '-', and is thus being treated as an
> option by cp.

Wrong guess. No file starting with '-'.


Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list