summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-12-05 14:39:02 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2011-12-05 14:39:51 -0800
commit6eb3cf234fef5522c0a206222e77f170c2ad6959 (patch)
tree53acb0ce7aa588d9eb1a0d6a228d7179f1540207 /src
parentdb38db483699e1be909df68425f4d8739af229be (diff)
downloadcoreutils-6eb3cf234fef5522c0a206222e77f170c2ad6959.tar.xz
ln: clarify usage of -L, -n, -T
* src/ln.c (usage): Use clearer wording to describe the -L, -n, and -T options (Bug#9896).
Diffstat (limited to 'src')
-rw-r--r--src/ln.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ln.c b/src/ln.c
index 90b6e598b..52649de54 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -345,6 +345,7 @@ In the 1st form, create a link to TARGET with the name LINK_NAME.\n\
In the 2nd form, create a link to TARGET in the current directory.\n\
In the 3rd and 4th forms, create links to each TARGET in DIRECTORY.\n\
Create hard links by default, symbolic links with --symbolic.\n\
+By default, each destination (name of new link) should not already exist.\n\
When creating hard links, each TARGET must exist. Symbolic links\n\
can hold arbitrary text; if later resolved, a relative link is\n\
interpreted in relation to its parent directory.\n\
@@ -363,9 +364,9 @@ Mandatory arguments to long options are mandatory for short options too.\n\
"), stdout);
fputs (_("\
-i, --interactive prompt whether to remove destinations\n\
- -L, --logical make hard links to symbolic link references\n\
- -n, --no-dereference treat destination that is a symlink to a\n\
- directory as if it were a normal file\n\
+ -L, --logical dereference TARGETs that are symbolic links\n\
+ -n, --no-dereference treat LINK_NAME as a normal file if\n\
+ it is a symbolic link to a directory\n\
-P, --physical make hard links directly to symbolic links\n\
-s, --symbolic make symbolic links instead of hard links\n\
"), stdout);
@@ -373,7 +374,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
-S, --suffix=SUFFIX override the usual backup suffix\n\
-t, --target-directory=DIRECTORY specify the DIRECTORY in which to create\n\
the links\n\
- -T, --no-target-directory treat LINK_NAME as a normal file\n\
+ -T, --no-target-directory treat LINK_NAME as a normal file always\n\
-v, --verbose print name of each linked file\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);