aboutsummaryrefslogtreecommitdiffhomepage
path: root/README
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-12-06 18:46:57 +0100
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-12-06 18:46:57 +0100
commitc419594e8aff0fdc17c21e9313169e08f3050a73 (patch)
tree32504f7c2f5efff1c7f883437fa66282499e17b9 /README
parentc150136f5b772c35a633afadecf6e3e491ff4ae4 (diff)
support executing commands both through shell and directly
Diffstat (limited to 'README')
-rw-r--r--README13
1 files changed, 11 insertions, 2 deletions
diff --git a/README b/README
index 23b0f4e..1ac42a8 100644
--- a/README
+++ b/README
@@ -291,12 +291,21 @@ The above example demonstrates two things:
Command substitution will launch any commands and substitute the call with the return value of the command.
+There are two methods:
-Uzbl will substitute any commands enclosed within @( )@:
+ * through a shell: enclose commands with @( )@ (quotes escaping is handled by uzbl):
print Command substitution: @(uname -a)@
-You can access any uzbl variable from within a command substitution:
+This method allows you to use posix shell syntax in your commands
+
+ * directly:
+
+ print Command substitution: @(+uname -a)@
+
+This example will execute uname directly
+
+Note that you can access any uzbl variable from within a command substitution:
print @(echo -n 'Accessing the show_status var from an external script, value: @show_status')@