[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Would like a way to silent ln "warning: making a hard link to a symb

From: Bob Proulx
Subject: Re: Would like a way to silent ln "warning: making a hard link to a symbolic link is not portable"
Date: Thu, 19 Jun 2003 22:43:41 -0600
User-agent: Mutt/1.3.28i

Jim Meyering wrote:
> Does anyone think it's worth adding an option to enable
> (or even disable) the warning?

I can just see it now, '-Wall' for all of the utilities.  :-)

Seriously I did not even know you could make a hard link of a symlink
until this thread and had never needed to do so before.

I just tested both HP-UX and AIX and both silently create a copy of
the contents of the source file instead of creating a hard link and
both return success.  So it works like 'cp' there.

I agree.  There are a lot of non-portable features and options and if
there are not warnings for using non-portable options then it is
inconsistent to warn for non-portable features too.  Unless perhaps
POSIXLY_CORRECT is set or some other filter I don't think there should
be a warning.  But I don't see where POSIX requires a warning here so
using that for that purpose doesn't make sense either.  So I would
leave the warning off entirely for this feature.

Just my thoughts on this...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]