Situatie: Pe un sistem, /usr/lib este symlink catre /a/b/usr/lib In /a/b/usr/ se afla doar directorul lib.
[EMAIL PROTECTED]:~$ cd [EMAIL PROTECTED]:~$ cd /usr/lib/pkgconfig/../../bin/ [EMAIL PROTECTED]:/usr/bin$ pwd /usr/bin (cd a urmat symlink-urile) [EMAIL PROTECTED]:/usr/bin$ ls -al less -rwxr-xr-x 1 root root 112080 2005-12-11 06:50 less [EMAIL PROTECTED]:/usr/bin$ cd [EMAIL PROTECTED]:~$ ls /usr/lib/pkgconfig/../../bin/less* ls: /usr/lib/pkgconfig/../../bin/less*: No such file or directory <<= !? (aici ls a urmat ierarhia fizica, nu symlink-urile) [EMAIL PROTECTED]:~$ ls /usr/lib/pkgconfig/../../bin/less <TAB><TAB> less lessecho lessfile lesskey lesspipe [EMAIL PROTECTED]:~$ ls /usr/lib/pkgconfig/../../bin/ ls: /usr/lib/pkgconfig/../../bin/: No such file or directory [EMAIL PROTECTED]:~$ cd /usr/lib/pkgconfig/../../ [EMAIL PROTECTED]:/usr$ ls -al total 85 drwxr-xr-x 12 root root 336 2006-01-24 11:21 . drwxr-xr-x 23 root root 712 2006-01-27 13:29 .. drwxr-xr-x 2 root root 65256 2006-02-02 17:06 bin drwxr-xr-x 2 root root 128 2006-01-25 09:03 doc lrwxrwxrwx 1 root root 4 2005-08-31 18:26 etc -> /etc drwxr-xr-x 2 root root 520 2006-01-31 11:08 games drwxr-xr-x 43 root root 4472 2006-01-31 11:06 include lrwxrwxrwx 1 root root 20 2005-08-30 19:26 lib -> /a/b/usr/lib <<= symlink pe alta partitie drwxr-xr-x 3 root root 80 2005-10-10 12:33 lib64 drwxr-xr-x 8 root root 216 2006-01-24 12:26 local drwxr-xr-x 2 root root 8944 2006-02-02 17:05 sbin drwxr-xr-x 299 root root 8440 2006-02-02 15:33 share drwxrwsr-x 7 root src 248 2006-01-27 13:27 src drwxr-xr-x 5 root root 120 2006-01-19 11:55 X11R6 [EMAIL PROTECTED]:/usr$ ls -al /usr/lib/pkgconfig/../../ total 50 drwxr-xr-x 3 root root 72 2005-08-30 19:17 . drwxr-xr-x 11 mache mache 264 2006-01-13 12:46 .. drwxr-xr-x 171 root root 51216 2006-02-02 17:06 lib Acu intrebare: cum pot forta follow symlinks in shell? Din pacate am o suita de aplicatii ce folosesc shell wrappers pt a porni, in care exista tot felul de dude gen "exec/test/crap /usr/lib/pkgconfig/../../bin/duda" ce sfarsesc mizerabil cu "no such file or directory". /usr/lib nu il pot muta de acolo, iar modificarea tuturor scripturilor de genul asta ar lua probabil cateva zile, modificari ce oricum s'ar pierde in cateva zile. -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://www.bitdefender.com/ _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
