Never directly invoke ${BROWSER} - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset c4b96d888de1aa46b0f0b500a4e09d9e384f0295
(DIR) parent f2227a62766ece50c043bb9d443d3ea3b7b8f31e
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Mon, 10 Jun 2019 18:49:30
Never directly invoke ${BROWSER}
Diffstat:
surf/surf-setprop | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff -r f2227a62766e -r c4b96d888de1 surf/surf-setprop
--- a/surf/surf-setprop Sun Jun 09 20:54:44 2019 +0200
+++ b/surf/surf-setprop Mon Jun 10 18:49:30 2019 +0200
@@ -26,6 +26,9 @@
# XXX: It is possible to inject arbitrary command in the two surfraw
# XXX: invocations.
+ # XXX: Never directly invoke ${BROWSER}.
+ BROWSER=:
+
[ -n "$1" ] && surfraw -p -- $1 2>/dev/null |
awk -v var="$1" '
/No elvis or bookmark with that name/ {