0

I have a command that is similar to this minimal example:

$ sh -c 'echo "1=$1"' _ foo
1=foo
$ 

When I want to run it through sudo, it stops working:

$ sudo -i -u user -- sh -c 'echo "1=$1"' _ foo
1=
$ 
finefoot
  • 3,060

0 Answers0