Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: Layout/Setup of Kernel | Date | 1 Aug 1998 21:14:12 GMT |
| |
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
| |