From 61fd8b98611b978d4f0e0c2d3f76ec59b544ce94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Wed, 2 Mar 2016 14:26:10 +0100 Subject: [PATCH] history.fish: Fix input handling Pass the input to 'string', it was accidentally removed in fcdc6a48c0bbdc796975db8d0b7f32434d86d249. --- share/functions/history.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/history.fish b/share/functions/history.fish index b6d8ee963..758b5ea56 100644 --- a/share/functions/history.fish +++ b/share/functions/history.fish @@ -98,7 +98,7 @@ function history --description "Deletes an item from history" end #Following two validations could be embedded with "and" but I find the syntax kind of weird. - if not string match -qr '^[0-9]+$' + if not string match -qr '^[0-9]+$' $i printf "Invalid input: %s\n" $i continue end