[Bug 11846] New: ln help for option -T ("2nd arg must be a DIR") is misleading

bugzilla at busybox.net bugzilla at busybox.net
Mon May 6 20:09:05 UTC 2019


            Bug ID: 11846
           Summary: ln help for option -T ("2nd arg must be a DIR") is
           Product: Busybox
           Version: 1.30.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: jhammond at indeed.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

The -T option for ln seems to be based on the -T option from GNU coreutils ln.
But the help text for -T misleadingly describes it as the opposite:

/ # ln --help
BusyBox v1.30.1 (2019-04-02 04:31:11 UTC) multi-call binary.


Create a link LINK or DIR/TARGET to the specified TARGET(s)

        -s      Make symlinks instead of hardlinks
        -f      Remove existing destinations
        -n      Don't dereference symlinks - treat like normal file
        -b      Make a backup of the target (if exists) before link operation
        -S suf  Use suffix instead of ~ when making backup files
        -T      2nd arg must be a DIR
        -v      Verbose
/ # rm -f f0 f1
/ # touch f0
/ # ln -T /f0 /f1
/ # ln -T /f0 /tmp/
ln: '/tmp/' is a directory
/ # ln -T /f0 /tmp/f1

I suggest copying the help from GNU coreutils "-T     treat LINK as a normal
file always".

You are receiving this mail because:
You are on the CC list for the bug.

More information about the busybox-cvs mailing list