]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/backticks/backticks-docs.factor
backticks: adding backtick syntax experiment.
[factor.git] / extra / backticks / backticks-docs.factor
diff --git a/extra/backticks/backticks-docs.factor b/extra/backticks/backticks-docs.factor
new file mode 100644 (file)
index 0000000..df6b135
--- /dev/null
@@ -0,0 +1,12 @@
+USING: help.markup help.syntax io.encodings.utf8 strings ;
+IN: backticks
+
+HELP: `
+{ $syntax "` command [args]`" }
+{ $description "Runs the specified command and captures the output as a " { $link utf8 } " encoded " { $link string } "." }
+{ $examples
+    { $unchecked-example
+        "` ls -l`"
+        "total 45\ndrwxrwxr-x+ 61 root  admin  2074 Apr  8 22:58 Applic..."
+    }
+} ;