command reordering

matthew sporleder msporleder at gmail.com
Wed Mar 2 01:07:24 EST 2005


ssh myname at myhost 'printf %s: `hostname` ; ssh -V && printf %s:
`hostname` ; php -v'

Will return something like:

myhost:myhost:OpenSSH_3.5etcetcetc
4.x.y


Why is ssh putting the printf's together?  This also works with any
combination of ;/&& vs echo -n/printf.

I found this site talking about rsync and getopt problems, but I
haven't figured out the work-around yet:
http://lists.samba.org/archive/rsync/2004-October/010831.html

-- 
_Matt




More information about the openssh-unix-dev mailing list