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

Bug#377307: busybox: redundant escaping during tab completion



Package: busybox
Version: 1:1.1.3-2
Severity: minor

When the first character of a path is a character that needs to be 
escaped, busybox will correctly do that when hitting tab. However, if you 
hit tab again, it will add a second "\" at the front which makes the path 
invalid.

Example (text that is entered at the is shown between {}; changes on tab 
completion are shown on the next line):
# {ls}
=dev=md=0
=dev=scsi=host0=bus0=target0=lun0=disc
=dev=scsi=host0=bus0=target1=lun0=disc
# {ls =dev<tab>} =>
  ls \=dev\={s<tab>} =>
  ls \\=dev\=scsi\=host0\=bus0\=target

As you can see, only the first \ is doubled, the second one is left alone.

Attachment: pgp3Lqzifp_OY.pgp
Description: PGP signature


Reply to: