Bug 107353

Summary: pacmd always returns 0 code
Product: PulseAudio Reporter: wolf+freedesktop
Component: toolsAssignee: pulseaudio-bugs
Status: RESOLVED MOVED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart, wolf+freedesktop
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description wolf+freedesktop 2018-07-23 21:44:02 UTC
pacmd always returns zero exit status, even when the command fails. Compare

	:( $ pacmd set-default-sink foobar ; echo $?
	Sink foobar does not exist.
	0

and

	[ wolf@ws ] :: ~
	Load: 0.38 0.24 0.15 , Memory: 6.01 %, Disk: 69.78 %
	   $ mount foobar ; echo $?
	mount: foobar: No such file or directory
	1

Returning 1 on exit would make using pacmd much easier in scripts.
Comment 1 GitLab Migration User 2018-07-30 09:34:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/25.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.