[BusyBox 0000811]: Bugs in command line escaping with lash

bugs at busybox.net bugs at busybox.net
Sun Apr 2 19:47:25 UTC 2006


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=811 
====================================================================== 
Reported By:                Belgabor
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   811
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             04-02-2006 12:47 PDT
Last Modified:              04-02-2006 12:47 PDT
====================================================================== 
Summary:                    Bugs in command line escaping with lash
Description: 
Two related issues:
1. Some characters are escaped inside "" or '', but normally everything
inside those should be passed as is to the command.
Example:
echo "Test []*\1"
expected output:
Test []*\1
lash's output:
Test \[\]\*
(and at the end some strange character which refuses to be copy'n'pasted
here properly. I suspect the 1 was tranlated to char 0x01)

2. lash escapes [] on tab completion, but passes the inserted \ to the
command
Example:
let's assume we have a file named 'Test [a].txt'
Using tab completeion we get (in any shell, including lash):
echo Test\ \[a\].txt
Expected output:
Test [a].txt
lash's output:
Test \[a\].txt
So either [] should not be escaped by lash or it should require and remove
the backslashes.

Was checked with version 1.1.1
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-02-06 12:47  Belgabor       New Issue                                    
04-02-06 12:47  Belgabor       Status                   new => assigned     
04-02-06 12:47  Belgabor       Assigned To               => BusyBox         
======================================================================




More information about the busybox-cvs mailing list