Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52344 - alsaconf: -bash: syntax error in conditional expression
Summary: alsaconf: -bash: syntax error in conditional expression
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 06:36 UTC by Toralf Förster
Modified: 2004-05-31 03:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2004-05-29 06:36:14 UTC
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 ?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-30 20:26:21 UTC
that isn't a gentoo problem... could you please report it upstream to the alsa developers.
Comment 2 Toralf Förster gentoo-dev 2004-05-31 03:26:50 UTC
ok, done it (bug 318) of project "alsa-utils"