[rt-devel] Re: [patch] rt CLI broken with command line add/del (also bug: reading /etc/rf.conf?)

Abhijit Menon-Sen ams at wiw.org
Wed Oct 15 11:53:13 EDT 2003


Hi Ian.

I think this particular bug was inadvertently introduced during a mass
fixup after some API changes. (I'd suggest the appended patch instead.
Jesse, please apply.)

> Usual caveats about the RT command line help syntax being out of date,
> supported modes appear to be 'add <attribute> <value> <attribute>
> <value>' etc or 'set attribute+=value'.

The latter is deliberately left undocumented.

> Modification of a read-only value attempted at /opt/rt3/bin/rt line 1100.

Strange.

-- ams

--- bin/rt.pl~	Wed Oct 15 21:11:55 2003
+++ bin/rt.pl	Wed Oct 15 21:13:17 2003
@@ -344,7 +344,7 @@
         local $/ = undef;
         $text = <STDIN>;
     }
-    elsif ($edit || !$cl) {
+    elsif ($edit || %add || %del || !$cl) {
         my $r = submit("$REST/show", { id => \@objects, format => 'l' });
         $text = $r->content;
     }



More information about the Rt-devel mailing list