lkml.org 
[lkml]   [1997]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Conditional SymLinks
Hmm.  We actually seem to already have this functionality in the kernel --
to some extent, at least.

Following a symlink tonight, I found:
[cananian@cananian /lib]# ls -l cpp
lrwxrwxrwx 1 root root 42 Nov 17 20:53 cpp -> ../usr/lib/gcc-lib/*linux*/2.7.2.3.f.1/cpp
[cananian@cananian /lib]# ls ../usr/lib/gcc-lib
i386-linux i586-unknown-linux-gnulibc1
[cananian@cananian gcc-lib]# echo *linux*
i386-linux i586-unknown-linux-gnulibc1

So it seems that *linux* is a 'magic' string of the type we were
discussing. Someone want to chase this down in the kernel and see if
there are other 'magic' strings defined? *uid* perhaps? =)

I don't think this is a shell thing. I may be wrong.
--Scott
@ @
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-oOO-(_)-OOo-=-=-=-=-=
C. Scott Ananian: cananian@lcs.mit.edu / Declare the Truth boldly and
Laboratory for Computer Science/Crypto / without hindrance.
Massachusetts Institute of Technology /META-PARRESIAS AKOLUTOS:Acts 28:31
-.-. .-.. .. ..-. ..-. --- .-. -.. ... -.-. --- - - .- -. .- -. .. .- -.
PGP key available via finger and from http://www.pdos.lcs.mit.edu/~cananian


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.040 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site