On 4/10/23 19:55, Sergio Durigan Junior wrote:
     fix_quote_readline_by_ref.patch, thanks to JuanJo Ciarlante (Closes: 
#739835)
+ avoid escaping 1st '~' (LP: #1288314)
         + avoid quoting if empty, else expansion without args only shows
           dirs (LP: #1288031)
         + replace double escaping to single (eg for completing file/paths
           with spaces)

Bingo! What I observe is reported in #825317.

I can confirm that adding a backslash before ~* in _quote_readline_by_ref() stops bash doing the very expensive NSS lookup.

Using the upstream version of the function has the same effect, of course.

In my humble opinion, this is a prime example that Debian (and Ubuntu) maintainers should be careful with their patches, especially in well-maintained packages.

Best wishes,
  -richard.
--
Richard B. Kreckel
<https://in.terlu.de/~kreckel/>

Reply via email to