Re: Conditional SymLinks

C. Scott Ananian (cananian@lcs.mit.edu)
Sat, 13 Dec 1997 00:03:40 -0500 (EST)


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