[pulseaudio-tickets] [Bug 107353] New: pacmd always returns 0 code
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jul 23 21:44:02 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=107353
Bug ID: 107353
Summary: pacmd always returns 0 code
Product: PulseAudio
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: tools
Assignee: pulseaudio-bugs at lists.freedesktop.org
Reporter: wolf+freedesktop at wolfsden.cz
QA Contact: pulseaudio-bugs at lists.freedesktop.org
CC: lennart at poettering.net
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 at 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.
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20180723/dc4a2e38/attachment.html>
More information about the pulseaudio-bugs
mailing list