diff --git a/usr.bin/install/inst.1 b/usr.bin/install/inst.1 index c5fe7df..f038aa4 100644 --- a/usr.bin/install/inst.1 +++ b/usr.bin/install/inst.1 @@ -1,8 +1,8 @@ .\" Copyright 1996-1997 Devin Reade . .\" -.\" $Id: inst.1,v 1.3 1998/04/24 00:54:02 gdr-ftp Exp $ +.\" $Id: inst.1,v 1.4 1999/01/16 19:30:56 gdr-ftp Exp $ .\" -.TH INSTALL 1 "23 April 1998" GNO "Commands and Applications" +.TH INSTALL 1 "16 January 1999" GNO "Commands and Applications" .SH NAME install \- copy files and set their attributes .SH SYNOPSIS @@ -117,7 +117,7 @@ was left out for efficiency reasons. .SH VERSION This manual page documents .BR install -version 1.2. +version 1.3. .SH AUTHOR Devin Reade . .SH "SEE ALSO" diff --git a/usr.bin/install/inst.c b/usr.bin/install/inst.c index b69a8fe..fa5c960 100644 --- a/usr.bin/install/inst.c +++ b/usr.bin/install/inst.c @@ -5,10 +5,10 @@ * For copying and distribution information, see the file "COPYING" * accompanying this file. * - * $Id: inst.c,v 1.5 1998/04/24 00:54:03 gdr-ftp Exp $ + * $Id: inst.c,v 1.6 1999/01/16 19:30:56 gdr-ftp Exp $ */ -#define VERSION "1.2" +#define VERSION "1.3" /* version also in inst.rez, inst.1, inst.desc */ #define EMAIL "" #define __USE_DYNAMIC_GSSTRING__ @@ -285,6 +285,7 @@ copyfiles(int argc, char **argv, int action, mode_t mode) GSStringPtr src, dest, newname; int total, i, result, printWhen; unsigned short flags; + char sep; #define PRINT_NEVER 0 /* used for printWhen (verbose mode) */ #define PRINT_BEFORE 1 #define PRINT_AFTER 2 @@ -330,9 +331,13 @@ copyfiles(int argc, char **argv, int action, mode_t mode) } else { printWhen = PRINT_NEVER; } + if (total > 0) { + sep = (strchr(argv[total], ':') != NULL) ? ':' : '/'; + } for (i=0; i