diff docs/freefeatures.rst @ 435:bfbe4241bd6b

custom double-redirector fixed
author catherine.devlin@gmail.com
date Thu, 25 Aug 2011 15:24:56 -0400
parents e60e2c15f026
children
line wrap: on
line diff
--- a/docs/freefeatures.rst	Sun Aug 21 02:39:43 2011 -0400
+++ b/docs/freefeatures.rst	Thu Aug 25 15:24:56 2011 -0400
@@ -76,6 +76,22 @@
     to paste buffer requires software to be installed on the operating
     system, pywin32_ on Windows or xclip_ on \*nix.
     
+If your application depends on mathematical syntax, ``>`` may be a bad
+choice for redirecting output - it will prevent you from using the
+greater-than sign in your actual user commands.  You can override your
+app's value of ``self.redirector`` to use a different string for output redirection::
+
+    class MyApp(cmd2.Cmd):
+        redirector = '->'
+        
+::
+
+    (Cmd) say line1 -> out.txt
+    (Cmd) say line2 ->-> out.txt
+    (Cmd) !cat out.txt
+    line1
+    line2
+
 .. _pywin32: http://sourceforge.net/projects/pywin32/
 .. _xclip: http://www.cyberciti.biz/faq/xclip-linux-insert-files-command-output-intoclipboard/