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: Shigio YAMAGUCHI
Subject: Re: missing links in hypertext generation
Date: Mon, 27 Nov 2006 20:34:36 +0900

> 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)
> }

You are right.
It's exactly what is required.
--
Shigio YAMAGUCHI <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

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