Skip to contentSkip to conversation

: Should reject invalid commands

ALSA - utils 0000532 [email protected] 1 participant 1 message Sep 24, 2004

lore
Share & tools
lore
#0 lore raw

The following bug has been SUBMITTED.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000532
======================================================================
Reported By: jdthood
Assigned To:
======================================================================

Project:                    ALSA - utils
Bug ID:                     532
Category:                   amixer
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             09-24-2004 06:30 CEST
Last Modified:              09-24-2004 06:30 CEST

======================================================================
Summary: Should reject invalid commands
Description:
The following proves that amixer accepts nonsense arguments with no hint to the user that nothing was done,

$ amixer set Master,0 nocap; amixer|sum
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 23 [74%] [on]
  Front Right: Playback 23 [74%] [on]
63938     6
$ amixer set Master,0 cap; amixer|sum
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 23 [74%] [on]
  Front Right: Playback 23 [74%] [on]
63938     6

Furthermore, not even $? was set [shell error value]
======================================================================

Bug History
Date Modified Username Field Change
======================================================================
09-24-04 06:30 jdthood New Bug
======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php