diff -Ndur kmix-4.14.3/apps/kmixremote kmix-4.14.3-fix-bashisms/apps/kmixremote --- kmix-4.14.3/apps/kmixremote 2014-07-16 11:24:17.000000000 +0300 +++ kmix-4.14.3-fix-bashisms/apps/kmixremote 2014-11-23 06:46:36.616308340 +0200 @@ -7,7 +7,7 @@ # Mute ################################################################################# -function usage +usage() { echo "Usage:" echo "List mixers # $0 list" @@ -18,7 +18,7 @@ echo } -function exit_with_error +exit_with_error() { echo "Error: $1" echo @@ -27,7 +27,7 @@ } # Prints the mixer DBUS ID's on the console. leaving out the "/Mixers/" prefix -function listMixers +listMixers() { qdbus org.kde.kmix /Mixers org.freedesktop.DBus.Properties.Get org.kde.KMix.MixSet mixers | cut -f3 -d/ errorCode=$? @@ -37,7 +37,7 @@ } # Prints the mixer control DBUS ID's of the given mixer on the console. leaving out the "/Mixers/" prefix -function listControls +listControls() { qdbus org.kde.kmix $1 org.freedesktop.DBus.Properties.Get org.kde.KMix.Mixer controls | cut -f4 -d/ errorCode=$?