[Bash-completion-devel] [bash-completion-Bugs][313499] [lp:783136] sudo su {user} -c "sss failing because of quotation

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Fri Jan 13 20:18:09 UTC 2012


Bugs item #313499, was changed at 2012-01-09 04:48 by Ville Skyttä
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313499&group_id=100114

Status: Closed
Priority: 3
Submitted By: Daniel Black (grooverdan-guest)
Assigned to: Nobody (None)
Summary: [lp:783136] sudo su {user} -c "sss   failing because of quotation 
Distribution: Ubuntu
Originally reported in: Ubuntu Launchpad
Milestone: None
Status: Fix Committed
Original bug number: 783136


Initial Comment:
from: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/783136

--
also failing against 1.90
sylvain at kheops:~$ sudo su postgres -c "pg_c^TABbash: eval: line -235: unexpected EOF while looking for matching `"'
bash: eval: line -234: syntax error: unexpected end of file
^C

--
works without quote:
sudo su postgres -c ha[tab]


----------------------------------------------------------------------

>Comment By: Ville Skyttä  (scop-guest)
Date: 2012-01-13 22:18

Message:
-c seems to be the same on Solaris as it is on Linux, but it's something completely different on FreeBSD (takes a "login class" argument, no idea what that is).

----------------------------------------------------------------------

Comment By: Igor Murzov (garik-guest)
Date: 2012-01-13 04:09

Message:
Yes. `su -c` is not implemented. I can implement it, but i don't know if `su -c` works on any system other than linux.

----------------------------------------------------------------------

Comment By: Daniel Black (grooverdan-guest)
Date: 2012-01-13 01:57

Message:
well I don't get any bash eval errors which is good.

I don't get any completions either. Is this the expected behaviour?

----------------------------------------------------------------------

Comment By: Igor Murzov (garik-guest)
Date: 2012-01-10 02:14

Message:
Should be fixed in commit: http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commit;h=2e975278c59de9ab6caa5ace65de4b49c6678e65
Please review.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313499&group_id=100114



More information about the Bash-completion-devel mailing list