diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-04-26 17:15:57 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-04-26 17:15:57 +0000 |
commit | d7706ae588fda99a14527bcb330cfc62f83d69e2 (patch) | |
tree | 685d366d32d6daac21b4f56782098c25aadf60f4 /bin/ln/ln.1 | |
parent | 1b6f26ed7fe086681a9e3b13193823c0eeae7edd (diff) | |
download | FreeBSD-src-d7706ae588fda99a14527bcb330cfc62f83d69e2.zip FreeBSD-src-d7706ae588fda99a14527bcb330cfc62f83d69e2.tar.gz |
Bring in `-h' compatability option and its alias `-n' to match NetBSD and GNU
semantics.
style(9) Reviewed by:
Obtained from: NetBSD
Diffstat (limited to 'bin/ln/ln.1')
-rw-r--r-- | bin/ln/ln.1 | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/bin/ln/ln.1 b/bin/ln/ln.1 index 6eb4f60..ec9d61e 100644 --- a/bin/ln/ln.1 +++ b/bin/ln/ln.1 @@ -44,11 +44,11 @@ .Nd make links .Sh SYNOPSIS .Nm -.Op Fl fisv +.Op Fl fhinsv .Ar source_file .Op target_file .Nm -.Op Fl fisv +.Op Fl fhinsv .Ar source_file ... .Op target_dir .Nm link @@ -79,6 +79,14 @@ then unlink it so that the link may occur. option overrides any previous .Fl i options.) +.It Fl h +If the +.Ar target_file +or +.Ar target_dir +is a symbolic link, do not follow it. This is most useful with the +.Fl f +option, to replace a symlink which may point to a directory. .It Fl i Cause .Nm @@ -94,6 +102,12 @@ Otherwise, do not attempt the link. option overrides any previous .Fl f options.) +.It Fl n +Same as +.Fl h , +for compatibility with other +.Nm +implementations. .It Fl s Create a symbolic link. .It Fl v @@ -168,12 +182,18 @@ The and .Fl v options are non-standard and their use in scripts is not recommended. -.Sh HISTORY -An +.Sh STANDARDS +The .Nm -command appeared in -.At v1 . +utility conforms to +.St -p1003.2-92 . +.Pp The simplified .Nm link command conforms to .St -susv2 . +.Sh HISTORY +An +.Nm +command appeared in +.At v1 . |