A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1457 ====================================================================== Reported By: steffen Assigned To: ajosey ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1457 Category: Shell and Utilities Type: Enhancement Request Severity: Editorial Priority: normal Status: Under Review Name: Steffen Nurpmeso Organization: User Reference: Section: Vol. 3: Shell and Utilities. Page Number: (page or range of pages) Line Number: (Line or range of lines) Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2021-03-09 21:21 UTC Last Modified: 2022-02-23 13:31 UTC ====================================================================== Summary: Add readlink(1) utility ======================================================================
---------------------------------------------------------------------- (0005704) emaste (reporter) - 2022-02-23 13:31 https://austingroupbugs.net/view.php?id=1457#c5704 ---------------------------------------------------------------------- I added a comment about the -f option on FreeBSD, but deleted it moments later after realizing I was mistaken. FreeBSD documents stat and readlink in the same man page and the option summary is unclear about which options apply to which program. Here is an excerpt of the stat/readlink man page that describes only readlink: readlink [-fn] [file ...] When invoked as readlink, only the target of the symbolic link is printed. If the given argument is not a symbolic link and the -f option is not specified, readlink will print nothing and exit with an error. If the -f option is specified, the output is canonicalized by following every symlink in every component of the given path recursively. readlink will resolve both absolute and relative paths, and return the absolute pathname corresponding to file. In this case, the argument does not need to be a symbolic link. -n Do not force a newline to appear at the end of each piece of output. >From NetBSD's man page: readlink [-fnqsv] [file ...] When invoked as readlink, only the target of the symbolic link is printed. If the given argument is not a symbolic link and the -f option is not specified, readlink will print nothing and exit with an error. If the -f option is specified, the output is canonicalized by following every symlink in every component of the given path recursively. readlink will resolve both absolute and relative paths, and return the absolute pathname corresponding to file. In this case, the argument does not need to be a symbolic link. -n Do not force a newline to appear at the end of each piece of output. -q Suppress failure messages if calls to stat(2) or lstat(2) fail. When run as readlink, error messages are automatically suppressed. -s ... When run as readlink, suppress error messages. -v Turn off quiet mode. And OpenBSD: readlink [-fn] file -f Canonicalize by following every symlink in every component of the given path recursively. readlink will resolve both absolute and relative paths and return the absolute pathname corresponding to file. The argument does not need to be a symbolic link. -n Do not print a trailing newline character. Issue History Date Modified Username Field Change ====================================================================== 2021-03-09 21:21 steffen New Issue 2021-03-09 21:21 steffen Status New => Under Review 2021-03-09 21:21 steffen Assigned To => ajosey 2021-03-09 21:21 steffen Name => Steffen Nurpmeso 2021-03-09 21:21 steffen Section => Vol. 3: Shell and Utilities. 2021-03-09 21:21 steffen Page Number => (page or range of pages) 2021-03-09 21:21 steffen Line Number => (Line or range of lines) 2021-03-10 04:11 emaste Issue Monitored: emaste 2022-02-22 15:58 geoffclare Note Added: 0005700 2022-02-22 16:01 geoffclare Note Edited: 0005700 2022-02-22 16:09 geoffclare Note Edited: 0005700 2022-02-22 16:11 geoffclare Project 1003.1(2008)/Issue 7 => 1003.1(2016/18)/Issue7+TC2 2022-02-22 16:13 geoffclare Note Edited: 0005700 2022-02-22 21:39 emaste Note Added: 0005701 2022-02-22 21:41 emaste Note Deleted: 0005701 2022-02-22 22:19 steffen Note Added: 0005702 2022-02-22 22:34 calestyo Issue Monitored: calestyo 2022-02-23 08:32 geoffclare Note Added: 0005703 2022-02-23 13:31 emaste Note Added: 0005704 ======================================================================