diff options
author | Abel `00z' Camarillo <00z@the00z.org> | 2009-07-12 14:21:50 -0500 |
---|---|---|
committer | Abel `00z' Camarillo <00z@the00z.org> | 2009-07-12 14:21:50 -0500 |
commit | fcb0c08792fb264c5f629dff57c602e8a88bd952 (patch) | |
tree | 1861a0976af33a477ec7e02d2d736556411f3a4b /examples | |
parent | 63682dd1f34715d02b478092b3c6c58207506115 (diff) |
replace that ugly ${!8} bashism
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/data/uzbl/scripts/yank.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/data/uzbl/scripts/yank.sh b/examples/data/uzbl/scripts/yank.sh index ddd0a4b..d702788 100755 --- a/examples/data/uzbl/scripts/yank.sh +++ b/examples/data/uzbl/scripts/yank.sh @@ -11,5 +11,7 @@ clip=xclip which xclip &>/dev/null || exit 1 [ "x$9" = xprimary -o "x$9" = xsecondary -o "x$9" = xclipboard ] || exit 2 -echo "echo -n '${8}' | $clip -selection $9" -echo -n "'${8}' | $clip -selection $9" +value=`eval "echo -n \\${$8}"` + +echo "echo -n '${value}' | $clip -selection $9" +echo -n "'${value}' | $clip -selection $9" |