Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
On 07/23/2014 07:51 AM, Dan Douglas wrote:
> On Wednesday, July 23, 2014 09:28:02 AM you wrote:
>> On 7/23/14, 8:22 AM, Dan Douglas wrote:
>>> Hi, from this discussion:
>>>
>>> https://github.com/koalaman/shellcheck/issues/195#issuecomment-49678200
>>>
>>> I can't find any reference that says substituting a literal tilde in PATH
>>> should occur during command search.
>>
>> Bash has always done this, even back to the pre-version 1 days, and I don't
>> see any reason to change it now.
>>
>
> The only concerns I can think of are inconsistency with programs that use
> execvp(), or possibly double-expansion in the event of a user name or any
> path
> containing ~.
>
> You're probably right in that it's not super critical if it hasn't caused
> problems so far.
Might be worth asking the POSIX folks if it is allowed by POSIX. What
do other shells do?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc Description: OpenPGP digital signature