From c419594e8aff0fdc17c21e9313169e08f3050a73 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sun, 6 Dec 2009 18:46:57 +0100 Subject: support executing commands both through shell and directly --- README | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'README') 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')@ -- cgit v1.2.3