Package: socat
Version: 1.6.0.1-1
Severity: normal
Hi,
after upgrade from Etch to Sid - socat 1.4.3.1 -> 1.6.0.1 I have
problems with existing scripts using socat:
SYSTEM:<shell-command> address
nothing changed in man-page concerning this address, but
meta-characters needs to be double-escaped?:
SYSTEM:<shell-command>
Forks a sub process that establishes communication with its par-
ent process and invokes the specified program with system().
Please note that <shell-command> [string] must not contain ','
or "!!", and that shell meta characters may have to be pro-
tected. After successful program start, socat writes data to
stdin of the process and reads from its stdout.
Option groups: FD,SOCKET,EXEC,FORK,TERMIOS
Useful options: path, fdin, fdout, chroot, su, su-d, nofork,
pty, stderr, ctty, setsid, pipes, sigint, sigquit
See also: EXEC
zito@bobek:~$ socat -V|head -2
socat by Gerhard Rieger - see www.dest-unreach.org
socat version 1.6.0.1 on Feb 28 2008 14:11:41
zito@bobek:~$ socat SYSTEM:"ssh ns hostname\;hostname" STDOUT
ns
bobek
zito@bobek:~$ socat SYSTEM:"ssh ns hostname\\\;hostname" STDOUT
ns
ns
zito@bobek:~$
Stable system (Etch):
zito@fog:~$ socat -V|head -2
socat by Gerhard Rieger - see www.dest-unreach.org
socat version 1.4.3.1 on Apr 13 2006 15:56:26
zito@fog:~$ socat SYSTEM:"ssh ns hostname\;hostname" STDOUT
ns
ns
zito@fog:~$ socat SYSTEM:"ssh ns hostname\\\;hostname" STDOUT
ns
fog
zito@fog:~$
If this incompatible option processing changes are intentional, than there
should be red warning about it, at least notice in README.Debian or so.