Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
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
Reporter steffen View Status public  
Assigned To ajosey
Priority normal Resolution Open  
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
Summary 0001457: Add readlink(1) utility
Description 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.
Desired Action Add the readlink utility.
The most minimal form seems to be from OpenBSD, it states:


NAME

readlink — display target of symbolic link on standard output
SYNOPSIS
readlink [-fn] file
DESCRIPTION

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:

-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.

EXIT STATUS

The readlink utility exits 0 on success, and >0 if an error occurs.
Tags No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.

- 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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker