Samba4 Patch: newuseradv and newgroupadv scripts for net cmd utlity

Lukasz Zalewski lukas at dcs.qmul.ac.uk
Sun Jun 13 07:37:47 MDT 2010


On 13/06/2010 13:52, Michael Wood wrote:
> On 13 June 2010 12:14, Lukasz Zalewski<lukas at dcs.qmul.ac.uk>  wrote:
>> Tried various combinations of ", \" and ' with no success :( As a workaround
>
> I think the problem might be
>
> testit () {
> 	name="$1"
> 	shift
> 	cmdline="$*"
> ^^^^^^^^^^^^^^^^^^^^^^^
>
> Normally if you want to keep quoted things as a single parameter you
> need to use "$@" instead of "$*".
>
Tried using $@ but the result is the same. Strangely when i echo 
$cmdline it visually looks ok (and when cut'n'pasted works too) even 
with $* (has the right quotations)

> Actually, I think this:
>
> 	output=`$cmdline 2>&1`
>
> also causes trouble.
>
> Anyway, maybe moving to Python would be better than fixing testit.
>

Luk


More information about the samba-technical mailing list