Re: ulimit and ssh?

2009-09-21 Thread Andreas Schwab
peter360  writes:

> In my case, I just got
>
> $ ssh localhost bash -x -c 'ulimit -a'
> unlimited
> + ulimit

Try ssh -v as Marc wrote.

debug1: Sending command: bash -x -c ulimit -a

The quotes are lost at this point.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Re: ulimit and ssh?

2009-09-21 Thread Andreas Schwab
peter360  writes:

> That makes sense.  So the "feature" is to split all parameters on space even
> if they are quoted?

The feature is that ssh concatenates all remaining arguments to a single
string and passes that to the shell on the remote side.  If you want to
preserve any quoting in this process you need to quote them.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."