realpath fails with inexplicable error message "Not a directory"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils |
Fix Released
|
Undecided
|
Unassigned | ||
coreutils (Ubuntu) |
Fix Released
|
Undecided
|
Pádraig Brady | ||
Trusty |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
After reading `man realpath` it should be clear why
$ cd /tmp
$ touch a
$ realpath ./a/..
realpath: ‘./a/..’: Not a directory
occurs. The manpage doesn't contain the word "directory" and thus the error message can't make sense.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: coreutils 8.23-3ubuntu1
Uname: Linux 4.1.1-040101-
NonfreeKernelMo
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jul 14 21:09:07 2015
InstallationDate: Installed on 2015-06-08 (36 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: coreutils
UpgradeStatus: Upgraded to vivid on 2015-06-09 (35 days ago)
Changed in coreutils (Ubuntu Trusty): | |
status: | Fix Committed → Won't Fix |
tags: | removed: rls-tt-incoming |
You need the -m option to not pass the 'a' component down where it will be interpreted as a directory