This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: librt and libpthread in alternate prefix


On Thu, May 14, 2009 at 10:54:59PM -0400, Poor Yorick wrote:
> Mike Frysinger wrote:
>> On Thursday 14 May 2009 22:25:49 Poor Yorick wrote:
>>> This is not acceptable, because if this script is called "awk", users will
>>> expect to be able to do this:
>>>
>>>      #! /path/to/alternate/bin/awk
>>>
>>> and they will get a "permission denied" error, because now awk is just a
>>> script (wrapping the real awk) instead of an executable.  On the #! line,
>>> the second item must be binary executable, not a script.
>>
>> i really havent a clue wahat you're talking about.  whatever.
>> -mike
>
> Just try it out.  You'll get a "permission denied" error.

  Works for me:

	pasky@machine[0:0]/tmp$ cat x.sh 
	#!/bin/sh
	echo "helper ran ($@)"
	. "$1"
	pasky@machine[0:0]/tmp$ cat y.sh 
	#!/tmp/x.sh
	echo main script ran
	pasky@machine[0:0]/tmp$ ./y.sh 
	helper ran (./y.sh)
	main script ran

Did you forget to set the x permission on one of the scripts?

-- 
				Petr "Pasky" Baudis
The lyf so short, the craft so long to lerne. -- Chaucer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]