lkml.org 
[lkml]   [1998]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Layout/Setup of Kernel
Date
Followup to:  <6pvgqe$7ua$1@alfie.demon.co.uk>
By author: Nick.Holloway@alfie.demon.co.uk (Nick Holloway)
In newsgroup: linux.dev.kernel
>
> Since it is trivial to specify an alternative location for the kernel
> source (the 1st argument), I don't think this is necessary. I also feel
> uncomfortable when scripts start using $0 -- not 100% reliable.
>

Actually $0 *IS* 100% reliable if done properly. The kernel expands
this to the full path if you're using #!, and you don't decode the
path if you're calling it using "sh foo". Hence if the first
character isn't /, prepend `pwd`// and you're safe.

-hpa
--
PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74
See http://www.zytor.com/~hpa/ for web page and full PGP public key
I am Bahá'í -- ask me about it or see http://www.bahai.org/
"To love another person is to see the face of God." -- Les Misérables

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

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