bug-bash
[Top][All Lists]
Advanced

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

Builtins should canonicalize path arguments


From: Ondrej Oprala
Subject: Builtins should canonicalize path arguments
Date: Thu, 09 Jan 2014 18:42:44 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hi, I investigated this bug report: https://bugzilla.redhat.com/show_bug.cgi?id=987975 and found out that some of bash's builtins (source at the very least) do not canonicalize pathnames given as arguments (builtin "open" is instead fed with the path - failing in the BZ case). The builtin "cd" seems to handle relative paths correctly. I think it would be reasonable to take part of cd's canonicalization code and use it in other builtins as well. I'd gladly take care of the patch.
Would upstream consider this a good approach?

Thanks,
Ondrej



reply via email to

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