Bug 107353 - pacmd always returns 0 code
Summary: pacmd always returns 0 code
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: tools (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-23 21:44 UTC by wolf+freedesktop
Modified: 2018-07-30 09:34 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.