[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
new realpath utility
From: |
Steven Barker |
Subject: |
new realpath utility |
Date: |
Sat, 6 Oct 2001 07:30:28 -0500 |
User-agent: |
Mutt/1.3.22i |
I just wrote a new program for shell-utils: realpath
It does the same thing as the standard library call of the same name; it
gets the canonical path to a given file. It takes one argument, the path
name to canonicalize. Currently it only supports the standard options.
I based my implementation off of dirname.c
The source to realpath.c is attached, as is a patch to sh-utils.texi adding
documentation for realpath.
To get better support of non-GNU systms it might be needed to include an
implementation of the realpath function. I looked at the implementation in
glibc (in the file /stdlib/canonicalize.c) but I don't know how to modify
it to fit into the shellutils build.
I'm afraid I don't grok autoconf well enough to patch the build scripts.
Please let me know if there's anything else you might need to include this
program in GNU shell utils. I'm willing to assign copyright to the FSF if
you tell me how to go about it.
--
Steven Barker address@hidden
"But don't you worry, its for a cause -- feeding global corporations' paws."
GnuPG public key: http://www.students.uiuc.edu/~scbarker/pubkey.asc
Fingerprint: 272A 3EC8 52CE F22B F745 775E 5292 F743 EBD5 936B
realpath.c
Description: Text Data
shellutils.texi.diff
Description: Text document
pgpFyhLr_Rpxn.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- new realpath utility,
Steven Barker <=