[pacman-dev] [PATCH] makepkg: print only base filename of install/changelog files

Allan McRae allan at archlinux.org
Thu Jun 3 18:14:33 EDT 2010


On 04/06/10 05:02, Daenyth Blank wrote:
> On Thu, Jun 3, 2010 at 14:59, Dan McGee<dpmcgee at gmail.com>  wrote:
>> On Thu, Jun 3, 2010 at 10:33 AM, Cedric Staniewski<cedric at gmx.ca>  wrote:
>>> The complete file path of a temporary symlink is really useless
>>> information.
>>>
>>> Signed-off-by: Cedric Staniewski<cedric at gmx.ca>
>>> ---
>> Not really sure what the right answer is, but what is the reasoning
>> not to use something like `basename` here? Obviously this is a bit
>> faster but there is a utility for this that must have some practical
>> purpose.
>>
>
> I seem to recall reading at some point that basename is not very
> portable. I could be mistaken though...
>

basename is part of coreutils which is very portable.

Anyway, I prefer using bash internals for string manipulation if possible.

Allan


More information about the pacman-dev mailing list