[sudo-users] Spaces in variable assignment from command args

Kevin Shortt kevinshortt at gmail.com
Thu Aug 4 11:47:59 EDT 2011


Try it with single ticks..

  sudo -i -u user make -C 'FOO=this is a test'

Just a thought.



On Fri, Jul 29, 2011 at 10:48 AM, Todd C. Miller
<Todd.Miller at courtesan.com>wrote:

> On Thu, 28 Jul 2011 15:36:22 -0300, Bogdano Arendartchuk wrote:
>
> > I have noticed that after installing sudo 1.7.6p2 on my system the
> > following command stopped working as expected:
> >
> >   sudo -i -u user make -C "FOO=this is a test"
> >
> > The argv[2] of make was expected to be "FOO=this is a test", but it
> > has only "FOO=this". I tried escaping the spaces and adding escaped
> > quotes, but it didn't help.
>
> This is an unfortunate consequence of a change made in sudo 1.7.5
> to delay escaping of special characters in command argument for
> "sudo -s" and "sudo -i".  It will be fixed in sudo 1.8.2 and I'll
> probably make a sudo 1.7.7 release about the same time.
>
>  - todd
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
>



More information about the sudo-users mailing list