Comment 7 for bug 999207

Revision history for this message
jpvrlaone (jpv4433) wrote : Re: [Bug 999207] Re: what is the operative readlink command?

I agree that the expanded install script w(use of set -vx) worked with the readlink command.

But somehow things got fuzzy and I hate to reinstall the running software monitoring tool to reenact the crime since I hate for you and me to spend more time on this.

I made a closing entry in the bug about the $0 agrument.

THANKS FOR YOUR INTEREST

________________________________
 From: Ralph Corderoy <email address hidden>
To: <email address hidden>
Sent: Monday, May 14, 2012 5:53 PM
Subject: [Bug 999207] Re: what is the operative readlink command?

When running the ./install script it seems to me that readlink works
correctly, do you agree?

Running readlink at the command line and passing it $0 might result in
the errors you are seeing depending on the value of $0.  Please try

    printf '<%s>\n' "$0"
    readlink -f -- "$0"

The pasting of your terminal session above is a bit corrupted;
readlink's errors appear on the same line as your command.  It helps us
if we see precisely what you entered and saw in response.  So for the
above, I see

    $ printf '<%s>\n' "$0"
    </bin/bash>
    $ readlink -f -- "$0"
    /bin/bash
    $

--
You received this bug notification because you are subscribed to the bug
report.
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