Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 25A71C433F5 for ; Mon, 23 May 2022 18:56:06 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2450E16EF; Mon, 23 May 2022 20:55:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2450E16EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1653332164; bh=L0XOpO21rPTZIsbhIPJ9Aap22rYXwxENg2BV94fRIrE=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=kIDPJvjs3D/WKqkI0giNgHzNE81CYW8d5kUN+X9Im6EXjnd8BrZLyFFF2Sj7zAqpl eohCgutQV6eNaxVSMVsk7NW6nDE2d0Tfxdh9/vo1GJVd4AZ/DxowQdokaNZL4WxiA4 CW6Kum4w/sPKb3UslLxa8tMnrxR2VF5kXBafGN5s= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A476CF800CB; Mon, 23 May 2022 20:55:13 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 60F02F80236; Mon, 23 May 2022 20:55:12 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id DD916F800CB for ; Mon, 23 May 2022 20:55:09 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DD916F800CB MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - opened To: alsa-devel@alsa-project.org In-Reply-To: <1653332109045311928-webhooks-bot@alsa-project.org> References: <1653332109045311928-webhooks-bot@alsa-project.org> Subject: amixer returns a RC=1 when you use 'amixer -v' while other 'amixer' commands (like 'amixer -h` or `amixer --help') return with a '0'. Message-Id: <20220523185512.60F02F80236@alsa1.perex.cz> Date: Mon, 23 May 2022 20:55:12 +0200 (CEST) X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" alsa-project/alsa-utils issue #149 was opened from juggledad: amixer version 1.2.4 Raspberry Pi Zero W v1.1 Raspbian GNU/Linux 11 (bullseye) - desktop version Node-RED v2.2.2 This was discovered using an `exec` node in on a The exec node runs a command and returns its output. When running a test, I wanted to get the amixer version. There are two ways to ask `amixer` for it's version number 1 - use 'amixer -v' 2 - use 'amixer --version` Both returned the version number but had a Return Code of 1. All other 'amixer' commands (like 'amixer -h` or `amixer --help') return with a '0'. Here is a copy of the node-red flow that was used: ` [{"active":true,"complete":"true","console":false,"id":"38409c9414d4fb0b","name":"stdout","statusType":"auto","statusVal":"","targetType":"full","tosidebar":true,"tostatus":false,"type":"debug","wires":[],"x":730,"y":80,"z":"58ad38887591e1b1"},{"active":true,"complete":"true","console":false,"id":"de852fbd07407b7a","name":"stderr","statusType":"auto","statusVal":"","targetType":"full","tosidebar":true,"tostatus":false,"type":"debug","wires":[],"x":730,"y":120,"z":"58ad38887591e1b1"},{"active":true,"complete":"true","console":false,"id":"42faac21ce0190b3","name":"return code","statusType":"auto","statusVal":"","targetType":"full","tosidebar":true,"tostatus":false,"type":"debug","wires":[],"x":750,"y":160,"z":"58ad38887591e1b1"},{"crontab":"","id":"84f238ce5b65227d","name":"","once":false,"onceDelay":0.1,"payload":"amixer -v","payloadType":"str","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","topic":"","type":"inject","wires":[["05c0a4eb46c0c1c8"]],"x":180,"y":60,"z":"5 8ad38887591e1b1"},{"crontab":"","id":"fabfd7b565392096","name":"","once":false,"onceDelay":0.1,"payload":"amixer -h","payloadType":"str","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","topic":"","type":"inject","wires":[["05c0a4eb46c0c1c8"]],"x":180,"y":180,"z":"58ad38887591e1b1"},{"crontab":"","id":"c54064c5cc3b2484","name":"","once":false,"onceDelay":0.1,"payload":"amixer --version","payloadType":"str","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","topic":"","type":"inject","wires":[["05c0a4eb46c0c1c8"]],"x":200,"y":120,"z":"58ad38887591e1b1"},{"addpay":"payload","append":"","command":"","id":"05c0a4eb46c0c1c8","name":"","oldrc":false,"timer":"","type":"exec","useSpawn":"false","winHide":false,"wires":[["38409c9414d4fb0b"],["de852fbd07407b7a"],["42faac21ce0190b3"]],"x":490,"y":120,"z":"58ad38887591e1b1"}] ` Issue URL : https://github.com/alsa-project/alsa-utils/issues/149 Repository URL: https://github.com/alsa-project/alsa-utils