On 11/25/06, Matthew Burgess <[EMAIL PROTECTED]> wrote:
Greg Schafer wrote:
> Matthew Burgess wrote:
>
>> I still haven't a clue what caused me to obtain the original error
>> message, but I can't seem to reproduce it now :( That would seem to
>> hint at a race condition like Bryan originally alluded to.
>
> The usual cause of this specific error is because shell hashing is not
> switched off. ie: using `mv' to move itself and the shell remembers the
> original location.
Well, I'm using jhalfs. jhalfs' `chroot' command uses '+h' to turn off
hashing. Each package is then installed using its own script, with a
typical #!/bin/bash shebang line. Tests here suggest that options do
not get inherited by subshells:
Either add "set +h" to each script, or add +h to the shebang line. Or
invoke each script with "bash +h ...". Or, just source the script with
hashall turned off in the current environment. I don't have the jhalfs
source in front of me right now to dig through.
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page