[tor-bugs] #9053 [Tor]: configure broken when sh is not bash

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jun 12 12:52:05 UTC 2013


#9053: configure broken when sh is not bash
--------------------+-------------------------------------------------------
 Reporter:  x3j11   |          Owner:                    
     Type:  defect  |         Status:  new               
 Priority:  normal  |      Milestone:  Tor: 0.2.5.x-final
Component:  Tor     |        Version:                    
 Keywords:          |         Parent:                    
   Points:          |   Actualpoints:                    
--------------------+-------------------------------------------------------
 Commit f5cf614ed3bfdf14b16242d4f1bec086224acf4e introduces a bashism that
 is broken in two ways:
 * on systems where sh is not bash, such as Ubuntu which uses dash, or non-
 Linux, this will mean configure will break with a syntax error
 * the iteration doesn't work as expected with bash, in that only the first
 item is iterated on.

 Using double-quotes is sufficient to use here. Attached is a patch to
 correct this.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/9053>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list