[EMAIL PROTECTED] wrote:
On 12/11/07, Thorsten Scherler <[EMAIL PROTECTED]> wrote:
On Thu, 2007-11-29 at 12:08 +0000, [EMAIL PROTECTED] wrote:
In English,
1. Get the path used to reach the current executable.
2. Change directory using the result of #1. This is relative to the
current directory. The current directory (PWD) is the directory from
which the command is called.
3. Get the absolute current path. This removes dots and symbolic links.
This code works on every *nix except SunOS. SunOS uses the original
1977 shell, which did not have good string manipulation. sh and awk
were the two required programs for Unix. String manipulation
required using awk.
apache are really running a SunOS server without gnutools installed?
wow. is it masochism, or the fear of the dreaded GPL? >:->
i wonder: aren't dirname and basename posix? or gnuisms as well?
--
Jörn Nettingsmeier
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]