coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`readlink -f` and trailing slash


From: Todd Partridge
Subject: `readlink -f` and trailing slash
Date: Tue, 28 Aug 2012 19:23:18 -0400

I was wondering if this be possible to define because I see people use
it `readlink -f` to discover the full path a number of times.  When
using `readlink -f` it prints the full path; however, if one enters
the full path with a trailing slash on a directory, it does not
include the trailing slash.  I think it would be good for a couple
programs one of which is `rsync`.  Using a trailing slash with rsync
for the source directory would copy the contents of the directory,
without it the directory itself is copied.  Seems to me that there was
another program that did this too.  Would it be possible to append a
trailing slash to `readlink -f` for those that specify that when then
type it?  e.g. `readlink -f libtool/` would return
`/usr/share/libtool/` rather than `/usr/share/libtool`.  Just a
thought, but be very very nice.

Thank you for you work on coreutils.

-- 
Todd Partridge
First they ignore you, then they laugh at you, then they fight you,
then you win.
 - Mohandas Gandhi
Computer Blog (Linux): http://linuxtidbits.wordpress.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]