|Anonymous | Login||2021-08-05 04:24 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details|
|ID||Category||Severity||Type||Date Submitted||Last Update|
|0001457||[1003.1(2008)/Issue 7] Shell and Utilities||Editorial||Enhancement Request||2021-03-09 21:21||2021-03-09 21:21|
|Section||Vol. 3: Shell and Utilities.|
|Page Number||(page or range of pages)|
|Line Number||(Line or range of lines)|
|Final Accepted Text|
|Summary||0001457: Add readlink(1) utility|
Some POSIX utilities (like find) offer operators to work with symbolic links.
It is not possible to read content of symbolic links by itself as far as i know, as is offered by readlink(1) which seems to be widely available, for a long time.
The current standard does not mention this utility as having been obsoleted in the past either, so i am asking for inclusion.
Add the readlink utility.
The most minimal form seems to be from OpenBSD, it states:
readlink — display target of symbolic link on standard output
readlink [-fn] file
The readlink utility when invoked with the pathname of a symbolic link as its argument dereferences the symbolic link and prints the name of target on standard output. If the -f option is not specified and readlink is invoked with an argument other than the pathname of a symbolic link, it exits with a nonzero exit code without printing anything.
The options are as follows:
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.
Do not print a trailing newline character.
The readlink utility exits 0 on success, and >0 if an error occurs.
|Tags||No tags attached.|
|There are no notes attached to this issue.|
|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|
|Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group|