Debian Bug report logs - #547349
bash-completion: mplayer doesn't complete filenames with spaces it in

version graph

Package: bash-completion; Maintainer for bash-completion is Gabriel F. T. Gomes <gabriel@debian.org>; Source for bash-completion is src:bash-completion (PTS, buildd, popcon).

Reported by: alex <alex@samad.com.au>

Date: Fri, 18 Sep 2009 20:54:01 UTC

Severity: important

Tags: confirmed, fixed-upstream

Merged with 543982, 544024, 544956, 548454, 549284, 549548, 550186, 556224

Found in version bash-completion/1:1.0-3

Fixed in version bash-completion/1:1.1-1

Done: David Paleino <d.paleino@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#547349; Package bash-completion. (Fri, 18 Sep 2009 20:54:04 GMT) (full text, mbox, link).


Acknowledgement sent to alex <alex@samad.com.au>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Fri, 18 Sep 2009 20:54:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: alex <alex@samad.com.au>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion: mplayer doesn't complete filenames with spaces it in
Date: Sat, 19 Sep 2009 06:46:02 +1000
Package: bash-completion
Version: 1:1.0-3
Severity: normal

hi 

if i have 2 files
File name with spaces.mkv
testFile.mkv

completion gets stuck on 
mplayer File\ 


testFile.mkv works


Alex

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (100, 'unstable'), (50, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash-completion depends on:
ii  bash                          4.0-4      The GNU Bourne Again SHell

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#547349; Package bash-completion. (Mon, 21 Sep 2009 22:00:09 GMT) (full text, mbox, link).


Acknowledgement sent to Lars Kruse <devel@sumpfralle.de>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Mon, 21 Sep 2009 22:00:10 GMT) (full text, mbox, link).


Message #10 received at 547349@bugs.debian.org (full text, mbox, reply):

From: Lars Kruse <devel@sumpfralle.de>
To: 547349@bugs.debian.org
Subject: [bash-completion] "quote_readline" doubles backslashs
Date: Mon, 21 Sep 2009 23:56:37 +0200
[Message part 1 (text/plain, inline)]
Package: bash-completion
Version: 1:1.0-3

--- Please enter the report below this line. ---

Hi,

the function "quote_readline" seems to cause this behavior.

How to reproduce:
 mkdir "foo bar"
 mv foo\ <TAB>
this produces no resulting matches.

bash-completion uses the function "_longopt" in /etc/bash-completion for this
operation. The problem seems to be caused by the output of "quote_readline"
which is called within "_filedir", which is called by "_longopt".

Running dequote/quote_readline does not recover the original input:
 lars@erker:~$ quote_readline "foo\ "
 'foo\\ '
 lars@erker:~$ dequote "$(quote_readline "foo\ ")"
 foo\\ 
(two backslashs instead of one)

In contrast the combination dequote/quote works as expected:
 lars@erker:~$ quote "foo\ "
 'foo\ '
 lars@erker:~$ dequote "$(quote "foo\ ")"
 foo\ 
(one backslash as expected)


I could not understand the difference between "quote" and "quote_readline". But
in the case shown above, "quote" would not cause a problem, while
"quote_readline" does.

Maybe "_filedir" (and "_filedir_xpsec") should use "quote" instead of
"quote_readline"?

thanks for your work,
Lars

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.30-1-686

Debian Release: squeeze/sid
  990 testing         localhost 

--- Package information. ---
Depends          (Version) | Installed
==========================-+-===============
bash        (>= 3.1dfsg-9) | 4.0-4


Package's Recommends field is empty.

Package's Suggests field is empty.


-- 

gpg key: https://systemausfall.org/schluessel/lars-devel.0.asc
[signature.asc (application/pgp-signature, attachment)]

Severity set to 'important' from 'normal' Request was from dbts.mhbt@dfgh.net to control@bugs.debian.org. (Tue, 29 Sep 2009 03:45:02 GMT) (full text, mbox, link).


Merged 544024 547349. Request was from dbts.mhbt@dfgh.net to control@bugs.debian.org. (Tue, 29 Sep 2009 03:45:04 GMT) (full text, mbox, link).


Merged 544024 547349 549284. Request was from Freddy Vulto <fvulto@gmail.com> to control@bugs.debian.org. (Fri, 02 Oct 2009 12:04:19 GMT) (full text, mbox, link).


Merged 544024 547349 549284 549548. Request was from Freddy Vulto <fvulto@gmail.com> to control@bugs.debian.org. (Mon, 05 Oct 2009 21:09:10 GMT) (full text, mbox, link).


Merged 544024 547349 549284 549548 550186. Request was from David Paleino <d.paleino@gmail.com> to control@bugs.debian.org. (Thu, 08 Oct 2009 20:00:11 GMT) (full text, mbox, link).


Forcibly Merged 544024 547349 549284 549548 550186 556224. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Sat, 14 Nov 2009 17:06:06 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 24 Dec 2009 07:29:49 GMT) (full text, mbox, link).


Bug unarchived. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Thu, 09 Dec 2010 04:27:08 GMT) (full text, mbox, link).


Forcibly Merged 543982 544024 544956 547349 548454 549284 549548 550186 556224. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Thu, 09 Dec 2010 04:27:12 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 06 Jan 2011 07:31:57 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 10:06:32 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.