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 09:15:03 -0700 (PDT)

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





------- Additional Comments From otom7630 AT lucy.troja.mff.cuni.cz 2005-04-28
09:15 -------
My brain just got hit by an inspiration particle.

What about this:

PARAMS=`for I in "$@";do echo -n $I | sed 's/ /\\ /g';echo -n " "; done`
su -c "$0 $PARAMS" root

Meaning that it would escape spaces in all parameters, so they would look like
one token. I tried it and it seems to work.

But I noticed that when I use --cflags, cast tries to resurrect the spell if
possible, which is probably not that good idea when I want to change CFLAGS
:) I
think that --cflags should imply -c as well, the same for other such override
parameters. Should I file another bug for this?

--
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