[Bug 1758077] [NEW] quoted tilde loses its quotation when path has spaces

Radu Cristescu 1758077 at bugs.launchpad.net
Thu Mar 22 14:38:57 UTC 2018


Public bug reported:

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.

** Affects: bash-completion (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  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.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/1758077

Title:
  quoted tilde loses its quotation when path has spaces

Status in bash-completion package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1758077/+subscriptions



More information about the foundations-bugs mailing list