commit: a387b8141f4fab651e59cce67e893aec5972e36d
parent: 71d3001cb06cf48490662df94d543d04415efc12
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 4 Mar 2019 06:49:39 +0100
man1x/install.1x: Enhance descriptions for 4.2BSD
The description paragraph is based on BSD 4.2 install(1) manpage,
same goes for the modification on -c flag description, which I added
for historic purposes.
Diffstat:
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/man1x/install.1x b/man1x/install.1x
@@ -17,13 +17,32 @@ which is an attempt to provide documentation of similarities and (noteworthy) di
.Op Ar source
.Op Ar destination
.Sh DESCRIPTION
+.Nm
+copies
+.Ar source
+to
+.Ar destination ,
+if
+.Ar destination
+already exists it is removed or renamed if
+.Fl b
+is specified before source is copied. If destination is a directory then source is copied into destination with its original filename.
+The mode of
+.Ar destination
+is set to 755 unless
+.Fl m Ar mode
+is specified.
.Bl -tag -width Ds
.It Fl b
backup any existing files before overwriting them by renaming them. (GNU appends '~' by default,
-.Nx
+BSDs
appends .old by default)
.It Fl c
-Copy the file. This is the default behaviour; the flag is maintained for backwards compatibility only.
+Copy the file.
+.Bx 4.2
+default behaviour is to move the binary unless
+.Fl c
+is specified. Copying the file is now the default behaviour; the flag is maintained for backwards compatibility only.
.It Fl g Ar group
Sets group ownership.
GNU: instead of the process' current group
@@ -42,7 +61,8 @@ on each binary/file
.Nx 8.0 ,
.Fx 12.0 ,
.Ox 6.4 ,
-GNU coreutils 8.30, Busybox 1.30.1.
+GNU coreutils 8.30, Busybox 1.30.1,
+.Bx 4.2 .
.Sh HISTORY
The
.Nm