From fd11f294bc0e1c35acae9e327026fdaa6b3546f9 Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 13 Dec 2006 03:11:18 +1000 Subject: Use the math function instead of calling bc directly in various places darcs-hash:20061212171118-ac50b-a40709edf008f3d725e3755d5282ae5a84818c88.gz --- share/functions/dirh.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/functions/dirh.fish') diff --git a/share/functions/dirh.fish b/share/functions/dirh.fish index b30a44e9..40a1b0ca 100644 --- a/share/functions/dirh.fish +++ b/share/functions/dirh.fish @@ -12,7 +12,7 @@ function dirh -d (N_ "Print the current directory history (the back- and fwd- li # Avoid set comment set -l current (command pwd) set -l separator " " - set -l line_len (echo (count $dirprev) + (echo $dirprev $current $dirnext | wc -m) | bc) + set -l line_len (math (count $dirprev) + (echo $dirprev $current $dirnext | wc -m) ) if test $line_len -gt $COLUMNS # Print one entry per line if history is long set separator "\n" -- cgit v1.2.3