[Bug 999207] Re: what is the operative readlink command?
jpvrlaone
jpv4433 at yahoo.com
Mon May 14 21:54:57 UTC 2012
Reuested info follows plus error messages listed when ran as root and user.
Maybe
# readlink --version
readlink (GNU coreutils) 8.13
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Dmitry V. Levin.
MORE >>>
AS ROOT>
# readlink -f "$0"readlink: invalid option -- 'u'
Try `readlink --help' for more information.
AS USER >
$ readlink -f "$0"readlink: invalid option -- 'b'
Try `readlink --help' for more information.
BELOW IS
# ./install
DEFAULT_INSTALL_PATH="/opt/pcdir"
+ DEFAULT_INSTALL_PATH=/opt/pcdir
DEFAULT_RUN_USER="root"
+ DEFAULT_RUN_USER=root
DEFAULT_RUN_GROUP="root"
+ DEFAULT_RUN_GROUP=root
RUN_LEVELS=(2 3 4 5)
+ RUN_LEVELS=(2 3 4 5)
INSTALL_AS_SERVICE="y"
+ INSTALL_AS_SERVICE=y
SCRIPT=`readlink -f "$0"`
readlink -f "$0"
++ readlink -f ./install
+ SCRIPT=/opt/pcdir/install
INSTALLDIR=`dirname "$SCRIPT"`
dirname "$SCRIPT"
++ dirname /opt/pcdir/install
+ INSTALLDIR=/opt/pcdir
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/999207
Title:
what is the operative readlink command?
Status in “coreutils” package in Ubuntu:
Incomplete
Bug description:
I stumlbed accross a problem where a script kept failing when running the readlink command.
It did not like the use of the -f flag which is supported in the man page. I got past the problem using /usr/lib/klibc/bin/readlink found through a search of the system. More details can be found in the forum using the tag "readlink".
What is going on with the readlink command?
Ubuntu 12.04 (precise)
2.6.38-8-generic
Intel(R) Core(TM) i5 CPU 650 @ 3.20GHz
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/999207/+subscriptions
More information about the foundations-bugs
mailing list