On 13 August 2013 13:38, Peter Stephenson wrote: > On Tue, 13 Aug 2013 13:00:39 +0100 > Wawrzek Niewodniczanski wrote: > > [...] > > ssh remote "zsh -c 'for i (/usr/*(/)) {ls $i }'" > ^^ > The problem is that the $i is being substituted by the local shell, > because it's in a double-quoted expression (the single quotes inside > that are not special to the local shell). Probably putting a backslash > in front of the $ should do the trick. > > That the hit! Thanks for help, Wawrzek -- Dr Wawrzyniec NiewodniczaƄski or Wawrzek for short PhD in Quantum Chemistry & MSc in Molecular Engineering WWW: http://wawrzek.name E-MAIL: jobs@wawrzek.name Linux User #177124