On Sun, 26 Nov 2006 23:39:17 +0900, Shigio YAMAGUCHI wrote...
> > Another function to normalize path name is required.
>
> This facility also should belong to the rel2abs().
> I will do the job.
Another incompatibility was found.
$ pwd
/tmp/usr/src/sys/bar
$ ls -al /tmp/sys
lrwxrwxrwx 1 iwamoto iwamoto 11 11月 27 19:16 /tmp/sys -> usr/src/sys
==== previous version ====
$ global -f /tmp/sys/foo/foo.c
main 1 ../foo/foo.c int main(void){return 0;}
==== rel2abs version ====
$ global -f /tmp/sys/foo/foo.c
'/tmp/sys/foo/foo.c' is out of source tree.
I think that what we need is a function like this.
f(){
echo $(realpath $(dirname $1))/$(basename $1)
}
----
Hideki IWAMOTO [EMAIL PROTECTED]
_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global