3 # Copyright © 2008,2010,2012,2019-2020 Nick Bowler
5 # License GPLv3+: GNU General Public License version 3 or any later version.
6 # This is free software: you are free to change and redistribute it.
7 # There is NO WARRANTY, to the extent permitted by law.
14 our ($VERSION, @ISA, @EXPORT);
20 # Returns the argument (or $_ if no arguments are supplied) quoted so that it
21 # can be presented as a single command argument to MPD at the protocol level.
25 # No way to encode literal newlines in the protocol, so we convert
26 # any newlines in the arguments into a space, which can help with
30 if ($s =~ /[ \t\\"']/) {