From: SourceForge.net <no...@so...> - 2003-10-02 03:05:54
|
Bugs item #816295, was opened at 2003-10-01 23:05 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=816295&group_id=588 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: David Kramer (dj_segfault) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with runInSystemShell() and quotes Initial Comment: 'm trying to write macros to ci and co the current file using rcs, since there's no plugin for that. I've never written jEdit macros before but it seems pretty easy. Checking out works, but checking in has a problem. The script looks like this: message = Macros.input(view, "change comment for " + path + ": "); if(params == null) { Macros.message(view, "Checkin of " + path + " was cancelled."); return; } command = "ci -u -m'" + message + "' "+ path; Macros.message(view, "Command is [" + command + "]"); runInSystemShell(view, command); (The message box is for debugging for now) When I run it, I get the following in the console: > ci -u -m'133' /home/david/data/projects/Windweb/windfaq ci: missing message for -m option Process ci exited with code 1 The most likely culprit from what I can see is the single quotes in the command, but there's no way around them. I need to pass the entire message to ci as one parameter (actuall as part of the -m parameter), and I need to make sure the message is not evaluated by the shell. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=816295&group_id=588 |