Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 8738] Cast doesn't like parameters with spaces in them

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 8738] Cast doesn't like parameters with spaces in them
  • Date: Thu, 28 Apr 2005 08:46:53 -0700 (PDT)

http://bugs.sourcemage.org/show_bug.cgi?id=8738





------- Additional Comments From otom7630 AT lucy.troja.mff.cuni.cz 2005-04-28
08:46 -------
I suppose this su command would break it as well. However I don't think that
"$@" can solve it here, as we have to pass the whole command in one parameter.
I'm afraid that this would need some special modification of the parameter
string.
Anyway, I can imagine some other situation where you need to pass some quotes
or
suchlike through su to the underlying command, so maybe something like
s/"/\"/g
and s/'/\'/g should be used on the $* string and the result sent to su. But
right now I don't have any idea how to do this so that it would work. Maybe
I'll
get clearer mind tomorrow when I won't be recovering crashed central servers
all
the day ;-)

Still it is possible in such case to just su to root and then use cast as root
to work around the problem :)


--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page