pfr no, I've been using this:
Dunno what that script is for...
pfr I just renamed runas to suas
So, your suas
is my suec
(or is it, "Mi casa es su casa?"--so hard to keep track...)
pfr Didn't catch the q.sh edit before..
You need it in case the commands you run have whitespace or other funny chars. embedded in it.
Man-page, mate (takes 10 secs): vim -Z
With my suec
, that's a wrong usage. You don't need to use suec
to run sued
.
Usage is:
suec ls -l /
suec ls -l 'file with spaces.txt'
suec sh -c 'ls -l "file with spaces.txt"; pwd'
sued file1 file2 ...
With the old suec
(suas
, runas
, ...?!), 2. & 3. need to be quoted differently:
suas ls -l '"file with spaces.txt"'
suas 'ls -l "file with spaces.txt"; pwd'
Pick the one you find simplest.