summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul W. Rankin <pwr@bydasein.com>2021-04-27 01:43:27 +1000
committerPaul W. Rankin <pwr@bydasein.com>2021-04-27 01:43:27 +1000
commitcb0c351aea173d8e5ff0bd42049e3dc3ba0e7c18 (patch)
treef4cb6016471c871fd26b17d439efca6ffcd92fea
parent60ec3542764aacc2ac3758fc310a50c024de18b7 (diff)
downloadblip-master.zip
blip.sh: use "\t" because '\t' doesn't work on BSDHEADmaster
-rw-r--r--blip.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/blip.sh b/blip.sh
index f8caa46..101f3a4 100644
--- a/blip.sh
+++ b/blip.sh
@@ -105,11 +105,11 @@ list() {
query="$4"
urls=$(collect)
if $(int_p "$query"); then
- urls=$(echo "$urls" | awk -F '\t' "FNR == $query { print $print_linenum $print_fields }")
+ urls=$(echo "$urls" | awk -F "\t" "FNR == $query { print $print_linenum $print_fields }")
elif [ -n "$query" ]; then
- urls=$(echo "$urls" | awk -F '\t' "$search_scope ~ /$query/ { print $print_linenum $print_fields }")
+ urls=$(echo "$urls" | awk -F "\t" "$search_scope ~ /$query/ { print $print_linenum $print_fields }")
else
- urls=$(echo "$urls" | awk -F '\t' "{ print $print_linenum $print_fields }")
+ urls=$(echo "$urls" | awk -F "\t" "{ print $print_linenum $print_fields }")
fi
[ -n "$urls" ] && echo "$urls" | column -ts $'\t'
}
@@ -124,9 +124,9 @@ browse() {
[ -n "$BLIP_BROWSER" ] || fail "\$BLIP_BROWSER not set"
urls=$(collect)
if $(int_p "$query"); then
- urls=$(echo "$urls" | awk -F '\t' "FNR == $query { print \$1 }")
+ urls=$(echo "$urls" | awk -F "\t" "FNR == $query { print \$1 }")
elif [ -n "$query" ]; then
- urls=$(echo "$urls" | awk -F '\t' "$search_scope ~ /$query/ { print \$1 }")
+ urls=$(echo "$urls" | awk -F "\t" "$search_scope ~ /$query/ { print \$1 }")
fi
url_count=$(echo "$urls" | wc -l)
if [ "$url_count" -gt "$browse_limit" ]; then