[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Findutils failure due to reliance /bin/echo

From: Eric Blake
Subject: Re: Findutils failure due to reliance /bin/echo
Date: Thu, 06 May 2010 11:32:13 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Mnenhy/0.8.2 Thunderbird/3.0.4

On 05/06/2010 09:13 AM, Ludovic Courtès wrote:
>> Even if it is also available as a shell builtin, that does not
>> alleviate the requirement to also have it available on $PATH.
> echo(1) *is* available in $PATH in the build environment, just like all
> of Coreutils.
> What would you think of ‘--with-echo’?

Why is xargs blindly calling /bin/echo?  Wouldn't it just be simpler to
change xargs.c' definition of default_cmd to be "echo" instead of
"/bin/echo" and using execvp instead of execve?  In a compliant
environment, you are guaranteed that echo(1) is on PATH, and calling the
wrong echo because of a non-compliant environment is not really xargs'
concern.  In other words, instead of making it more complex by adding
configure --with-echo, I propose making it simpler by dropping the
hard-coding in the first place.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]