All of lore.kernel.org
 help / color / mirror / Atom feed
* [ALSA - utils 0000318]: alsaconf: -bash: syntax error in conditional expression
@ 2005-01-19 14:36 bugtrack
  0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2005-01-19 14:36 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<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:                     new
======================================================================
Date Submitted:             05-31-2004 12:25 CEST
Last Modified:              01-19-2005 15:36 CET
======================================================================
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 - 01-19-05 15:36 
----------------------------------------------------------------------
You don't have to use double brackets.

< elif [ -f /etc/redhat-release -a `grep -c "Red Hat" /etc/redhat-release
2>/dev/null` -ne 0 ]; then
> elif [ -f /etc/redhat-release ] && [ "$(grep -c "Red Hat"
/etc/redhat-release 2>/dev/null)" -ne "0" ]; then

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                          
======================================================================




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ALSA - utils 0000318]: alsaconf: -bash: syntax error in conditional expression
@ 2005-01-19 15:44 bugtrack
  0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2005-01-19 15:44 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<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:                     new
======================================================================
Date Submitted:             05-31-2004 12:25 CEST
Last Modified:              01-19-2005 16:44 CET
======================================================================
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 - 01-19-05 15:36 
----------------------------------------------------------------------
You don't have to use double brackets.

< elif [ -f /etc/redhat-release -a `grep -c "Red Hat" /etc/redhat-release
2>/dev/null` -ne 0 ]; then
> elif [ -f /etc/redhat-release ] && [ "$(grep -c "Red Hat"
/etc/redhat-release 2>/dev/null)" -ne "0" ]; then

----------------------------------------------------------------------
 tiwai - 01-19-05 16:44 
----------------------------------------------------------------------
Even the second [] isn't necessary when you use grep -q.

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                          
======================================================================




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ALSA - utils 0000318]: alsaconf: -bash: syntax error in conditional expression
@ 2005-01-19 16:00 bugtrack
  0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2005-01-19 16:00 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<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:                     new
======================================================================
Date Submitted:             05-31-2004 12:25 CEST
Last Modified:              01-19-2005 17:00 CET
======================================================================
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 ?
======================================================================

----------------------------------------------------------------------
 tiwai - 01-19-05 16:44 
----------------------------------------------------------------------
Even the second [] isn't necessary when you use grep -q.

----------------------------------------------------------------------
 Toralf Förster - 01-19-05 17:00 
----------------------------------------------------------------------
Ok, what I mean, is:
tfoerste@nhh221 ~ $ [ -f /etc/redhat-release -a `grep "Red Hat"
/etc/redhat-release 2>/dev/null` -ne 0 ] && echo yes || echo no
bash: [: too many arguments
no
tfoerste@nhh221 ~ $ [[ -f /etc/redhat-release && `grep "Red Hat"
/etc/redhat-release 2>/dev/null` -ne 0 ]] && echo yes || echo no
no
tfoerste@nhh221 ~ $

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                          
======================================================================




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ALSA - utils 0000318]: alsaconf: -bash: syntax error in conditional expression
@ 2005-02-18 21:04 bugtrack
  0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2005-02-18 21:04 UTC (permalink / raw)
  To: alsa-devel


A NOTE has been added to this issue.
======================================================================
<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:                     new
======================================================================
Date Submitted:             05-31-2004 12:25 CEST
Last Modified:              02-18-2005 22:04 CET
======================================================================
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 ?
======================================================================

----------------------------------------------------------------------
 Toralf Förster - 01-19-05 17:00 
----------------------------------------------------------------------
Ok, what I mean, is:
tfoerste@nhh221 ~ $ [ -f /etc/redhat-release -a `grep "Red Hat"
/etc/redhat-release 2>/dev/null` -ne 0 ] && echo yes || echo no
bash: [: too many arguments
no
tfoerste@nhh221 ~ $ [[ -f /etc/redhat-release && `grep "Red Hat"
/etc/redhat-release 2>/dev/null` -ne 0 ]] && echo yes || echo no
no
tfoerste@nhh221 ~ $

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

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                          
======================================================================




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ALSA - utils 0000318]: alsaconf: -bash: syntax error in conditional expression
@ 2005-02-22 17:05 bugtrack
  0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2005-02-22 17:05 UTC (permalink / raw)
  To: alsa-devel


The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=318> 
======================================================================
Reported By:                Toralf Förster
Assigned To:                tiwai
======================================================================
Project:                    ALSA - utils
Issue ID:                   318
Category:                   alsaconf
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             05-31-2004 12:25 CEST
Last Modified:              02-22-2005 18:05 CET
======================================================================
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                          
======================================================================




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ALSA - utils 0000318]: alsaconf: -bash: syntax error in conditional expression
@ 2005-07-08  8:34 bugtrack
  0 siblings, 0 replies; 6+ messages in thread
From: bugtrack @ 2005-07-08  8:34 UTC (permalink / raw)
  To: alsa-devel


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-07-08  8:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-19 16:00 [ALSA - utils 0000318]: alsaconf: -bash: syntax error in conditional expression bugtrack
  -- strict thread matches above, loose matches on Subject: below --
2005-07-08  8:34 bugtrack
2005-02-22 17:05 bugtrack
2005-02-18 21:04 bugtrack
2005-01-19 15:44 bugtrack
2005-01-19 14:36 bugtrack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.