Bug 14861 - ln: unrecognized option: t
Summary: ln: unrecognized option: t
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.35.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-22 11:05 UTC by macmpi
Modified: 2022-06-22 11:05 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description macmpi 2022-06-22 11:05:23 UTC
There are a few discrepancies between documented usages of -t and -T options

Trivial usage message [1] implies -t exists and says:
//usage:       "[-sfnbtv] [-S SUF] TARGET... LINK|DIR"

but opt does not handle it [2]:
opts = getopt32(argv, "^" "sfnbS:vT" "\0" "-1", &suffix);

and web site command help does not list -T (nor -t)[3]:
ln

    ln [OPTIONS] TARGET... LINK|DIRECTORY

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

    Options:

            -s      Make symlinks instead of hardlinks
            -f      Remove existing destination files
            -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


[1] https://git.busybox.net/busybox/tree/coreutils/ln.c#n24
[2] https://git.busybox.net/busybox/tree/coreutils/ln.c#n64
[3] https://busybox.net/downloads/BusyBox.html