bug-global
[Top][All Lists]
Advanced

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

Re: missing links in hypertext generation


From: Hideki IWAMOTO
Subject: Re: missing links in hypertext generation
Date: Mon, 27 Nov 2006 19:46:46 +0900

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  address@hidden




reply via email to

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