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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
pulseaudio-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs

Reply via email to