[BusyBox-cvs] [BusyBox 0000152]: ash: quoting rules for local variables different to globals

bugs at busybox.net bugs at busybox.net
Thu Apr 28 13:04:28 UTC 2005


A NOTE has been added to this issue.
======================================================================
<http://busybox.net/bugs/view.php?id=152> 
======================================================================
Reported By:                srowe
Assigned To:                BusyBox
======================================================================
Project:                    BusyBox
Issue ID:                   152
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
======================================================================
Date Submitted:             03-14-2005 04:12 PST
Last Modified:              04-28-2005 06:04 PDT
======================================================================
Summary:                    ash: quoting rules for local variables different to
globals
Description: 
bash (and ash in 0.60) are happy with both

	var=`echo "a b c"`
	local var=`echo "a b c"`

(notice no double quotes around expression even though it expands to
multiple words.

ash in 1.0 requires quotes, but only for local variable declarations. The
attached file produces

	# sh test.sh
	this does work
	this

bash 2.05b produces

	# sh /tmp/test.sh
	this does work
	this should work


======================================================================

----------------------------------------------------------------------
 robtaylor - 04-28-05 06:04 
----------------------------------------------------------------------
ash-local-fix.diff seems to fix the issue for me. I'm not sure of its
correctness however.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
03-14-05 04:12 srowe          New Issue                                    
03-14-05 04:12 srowe          File Added: test.sh                          
03-16-05 12:27 andersen       Assigned To              andersen => BusyBox 
04-28-05 06:03 robtaylor      File Added: ash-local-fix.diff                    
04-28-05 06:04 robtaylor      Note Added: 0000197                          
======================================================================




More information about the busybox-cvs mailing list