diff options
author | glebius <glebius@FreeBSD.org> | 2006-02-14 11:08:05 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-02-14 11:08:05 +0000 |
commit | e85d27fb5cdffff450e7d4f4c932ae2202915d44 (patch) | |
tree | a26d514f67f8829961a5ca7a41ca48b4cdde5dd9 /bin/ln/ln.1 | |
parent | c170c752ba072d77f5201c63f9dcf5bf270b06e4 (diff) | |
download | FreeBSD-src-e85d27fb5cdffff450e7d4f4c932ae2202915d44.zip FreeBSD-src-e85d27fb5cdffff450e7d4f4c932ae2202915d44.tar.gz |
Add '-F' option which allows to delete existing empty directories, when
creating symbolic links.
PR: bin/92149
Submitted by: Eugene Grosbein <eugen grosbein.pp.ru>
Diffstat (limited to 'bin/ln/ln.1')
-rw-r--r-- | bin/ln/ln.1 | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/bin/ln/ln.1 b/bin/ln/ln.1 index e494d14..4c17dc1 100644 --- a/bin/ln/ln.1 +++ b/bin/ln/ln.1 @@ -32,7 +32,7 @@ .\" @(#)ln.1 8.2 (Berkeley) 12/30/93 .\" $FreeBSD$ .\" -.Dd December 30, 1993 +.Dd February 14, 2006 .Dt LN 1 .Os .Sh NAME @@ -41,11 +41,11 @@ .Nd make links .Sh SYNOPSIS .Nm -.Op Fl fhinsv +.Op Fl Ffhinsv .Ar source_file .Op Ar target_file .Nm -.Op Fl fhinsv +.Op Fl Ffhinsv .Ar source_file ... .Ar target_dir .Nm link @@ -76,6 +76,24 @@ then unlink it so that the link may occur. option overrides any previous .Fl i options.) +.It Fl F +If the target file already exists and is a directory, then remove it +so that the link may occur. +The +.Fl F +option should be used with either +.Fl f +or +.Fl i +options. +If none is specified, +.Fl f +is implied. +The +.Fl F +option is a no-op unless +.Fl s +option is specified. .It Fl h If the .Ar target_file @@ -179,6 +197,12 @@ options are non-standard and their use in scripts is not recommended. They are provided solely for compatibility with other .Nm implementations. +.Pp +The +.Fl F +option is +.Fx +extention and should not be used in portable scripts. .Sh SEE ALSO .Xr link 2 , .Xr lstat 2 , |