Jak v sh prevest relativni cestu na absolutni?

Matus UHLAR - fantomas uhlar na fantomas.sk
Pondělí Duben 11 09:03:41 CEST 2005


>>Petr Klima <klima na jihomilk.cz> wrote:
>>>Potreboval bych zjistit
>>>
>>>jestli /xxx/yyy/zzz a /xxx/../xxx/yyy/../yyy/zzz jsou stejne soubory 
>>>(teda spis cesty ...)
>>>
>>>! nepotrebuji porovnat cisla i-node
>>>    
>>>
>>>potrebuji to prevest na absolutni cestu a porovnat jako stringy a 
>>>pripadne dal pouzit ...

> Matus UHLAR - fantomas napsal(a):
>>realpath (3)         - return the canonicalized absolute pathname

Petr Klima <klima na jihomilk.cz> wrote:
> dobre ale potrebuje C2bash wrapper .... ;-)

Ospravedlnujem sa. Za takychto okolnosti sa vsak obavam, ze shell-only
riesenie a este k tomu prenositelne, neexistuje.

> ja to fakt potrebuju ze scriptu...

Takze este raz: 1. preco vobec? a 2. preco nie hack cez inodes?

-- 
Matus UHLAR - fantomas, uhlar na fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Despite the cost of living, have you noticed how popular it remains? 


Další informace o konferenci Linux