Re: [LAU] Toggle Jack Transport CLI

From: Ralf Mardorf <ralf.mardorf@email-addr-hidden-dsl.net>
Date: Wed Nov 16 2016 - 00:11:40 EET

On Tue, 15 Nov 2016 21:48:30 +0000, Yassin Philip wrote:
>On 15/11/16 21:40, Ralf Mardorf wrote:
>> &> /dev/null is the same as >/dev/null 2>&1 , it redirects STDERR
>> and STDOUT to /dev/null, IOW all output is invisible.
>Ah, sorry, it works now, it's just that I was executing it in a ZSH
>env. It needs to be a bash script. Thanks everyone, I got my transport
>toggle now! It's disturbingly hacky, but it works :)

Nothing of his script requires bashisms, use zsh compatible
redirecting >/dev/null 2>&1 or don't redirect at all. For scripts like
this I anyway would use dash, because it's lightweight and faster than
bash.

Regards,
Ralf
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Nov 16 00:15:02 2016

This archive was generated by hypermail 2.1.8 : Wed Nov 16 2016 - 00:15:02 EET