Skip to contentSkip to conversation

: alsaconf: -bash: syntax error in conditional expression

ALSA - utils 0000318 [email protected] 1 participant 1 message Jul 8, 2005

lore
Share & tools
lore
#0 lore raw

The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=318>
======================================================================
Reported By: Toralf Förster
Assigned To:
======================================================================

Project:                    ALSA - utils
Issue ID:                   318
Category:                   alsaconf
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             05-31-2004 12:25 CEST
Last Modified:              07-08-2005 10:34 CEST

======================================================================
Summary: alsaconf: -bash: syntax error in conditional
expression
Description:
The error above results from lines like:

elif [ -f /etc/redhat-release -a grep -c "Red Hat" /etc/redhat-release 2>/dev/null -ne 0 ]; then

instead it should be
elif [[ -f /etc/redhat-release && grep -c "Red Hat" /etc/redhat-release 2>/dev/null -ne 0 ]; then

notice the doubled '[[' and ']]' and '&&' instead of '-a', isn't it ?
======================================================================

----------------------------------------------------------------------
jdthood - 02-18-05 22:04
----------------------------------------------------------------------
This should be fixed.

----------------------------------------------------------------------
tiwai - 02-22-05 18:05
----------------------------------------------------------------------
Fixed on CVS.

Issue History
Date Modified Username Field Change
======================================================================
05-31-04 12:25 Toralf Förster New Issue
01-19-05 15:36 jdthood Note Added: 0003288
01-19-05 16:44 tiwai Note Added: 0003292
01-19-05 17:00 Toralf Förster Note Added: 0003299

02-18-05 22:04 jdthood        Note Added: 0003666                          
02-22-05 18:05 tiwai          Status                   new => resolved     
02-22-05 18:05 tiwai          Resolution               open => fixed       
02-22-05 18:05 tiwai          Assigned To               => tiwai           
02-22-05 18:05 tiwai          Note Added: 0003706                          
02-22-05 18:05 tiwai          Assigned To              tiwai =>            
07-08-05 10:34 perex          Status                   resolved => closed  

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

-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar