summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul W. Rankin <pwr@bydasein.com>2021-04-27 01:25:19 +1000
committerPaul W. Rankin <pwr@bydasein.com>2021-04-27 01:25:19 +1000
commitd9a14736520d7cd6edb607efb817801fad0ff52f (patch)
tree7e153ac44837bb6f4fe1dbc41cb4161d3a9f3790
parent0e7c0b87c735e28382636879490ddd44c99abec7 (diff)
downloadblip-d9a14736520d7cd6edb607efb817801fad0ff52f.zip
blip.sh: fix int_p for strings beginning with numbers
-rw-r--r--blip.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/blip.sh b/blip.sh
index 26f1a6c..9c7504b 100644
--- a/blip.sh
+++ b/blip.sh
@@ -21,7 +21,7 @@ version=0.1.0
blip_file="${BLIP_FILE:-${HOME}/.blip/bookmarks.tsv}"
fail() { echo "$1"; exit 1; }
-int_p() { expr "$1" : '[0-9][0-9]*' >/dev/null; }
+int_p() { expr "$1" : '[0-9][0-9]*$' >/dev/null; }
usage() {
cat <<EOF