[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Do use readlink if available
From: |
Bruno Haible |
Subject: |
Re: [PATCH] Do use readlink if available |
Date: |
Thu, 21 Jun 2012 11:41:43 +0200 |
User-agent: |
KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; ) |
Bernd Jendrissek wrote:
> Running under dash, type -p readlink fails because dash doesn't
> understand -p.
Indeed, I confirm that
- under bash, "type -p foo" and "type foo" produce the same exit code
for various values of foo,
- POSIX specifies the 'type' command only without '-p'
<http://pubs.opengroup.org/onlinepubs/9699919799/utilities/type.html>
Therefore I have applied your patch.
Note: The suffix "(tiny change)" in the ChangeLog entry is not meant to
minimize your contribution; it indicates that the patch does not require
a written copyright assignment from you.
Thanks!
Bruno