Bug #185

Add -D to install

Added by andy almost 8 years ago. Updated about 5 years ago.

Status:ClosedStart date:
Priority:LowDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Hoi,

Add the -D flag, an alias to -d, which is used on other systems.

History

#1 Updated by joerg almost 8 years ago

On Fri, May 26, 2006 at 05:54:59PM +0200, Andreas Hauser wrote:
> Hoi,
>
> Add the -D flag, an alias to -d, which is used on other systems.

I object this one, since the -D flag has a different semantics e.g.
compared to the NetBSD version.

Joerg

#2 Updated by LabThug almost 8 years ago

Just curious, why not just do a pass through clause? Like this:

diff -r 34c9cb8fd38c usr.bin/xinstall/xinstall.c
--- a/usr.bin/xinstall/xinstall.c Tue Apr 18 22:11:35 2006 +0000
+++ b/usr.bin/xinstall/xinstall.c Fri May 26 15:40:29 2006 +0200
@@ -128,6 +128,9 @@ main(int argc, char **argv)
case 'c':
/* For backwards compatibility. */
break;
+ case 'D': /*Intentional Pass through*/
case 'd':
dodir = 1;
break;

Adrian

On Fri, 2006-05-26 at 17:54 +0200, Andreas Hauser wrote:
> Hoi,
>
> Add the -D flag, an alias to -d, which is used on other systems.
>

#3 Updated by dillon almost 8 years ago

All three of you are wrong :-)

You have to add 'D' to the getopt too, ho ho!

In anycase, I'll let Joerg make the commit.

-Matt
Matthew Dillon
<>

#4 Updated by andy almost 8 years ago

joerg wrote @ Fri, 26 May 2006 18:06:13 +0200:
> On Fri, May 26, 2006 at 05:54:59PM +0200, Andreas Hauser wrote:
> > Hoi,
> >
> > Add the -D flag, an alias to -d, which is used on other systems.
>
> I object this one, since the -D flag has a different semantics e.g.
> compared to the NetBSD version.

This patch makes -D emit a warning and be ignored and documents that.

#5 Updated by corecode about 5 years ago

a cursory look only showed GNU supporting -D. netbsd uses it for something
different, other OS don't use it at all. I think we shouldn't commit it.
closing for now unless anybody feels we need to have it.

Also available in: Atom PDF