quoted tilde loses its quotation when path has spaces

Bug #1758077 reported by Radu Cristescu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
New
Undecided
Unassigned

Bug Description

Make a path with spaces in the name:

mkdir -p "~/d 1/d 2"

Attempt to autocomplete this path:

ls -l \~/<TAB>

Expected result: ls -l \~/d\ 1
Actual result: ls -l ~/d\ 1

ls -l "~/"<TAB>

Expected result: ls -l \~/d\ 1
Actual result: ls -l ~/d\ 1

I found this out by accidentally quoting the tilde and then trying to remove it in a safe way (i.e. without deleting my home directory by accident).

I'm using Ubuntu 17.10 amd64.

Radu Cristescu (radu.c)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.