aboutsummaryrefslogtreecommitdiffhomepage
path: root/seq.in
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-04 23:09:14 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-04 23:09:14 +1000
commit4f947015d25028db5b5f161d85bfd563a226c927 (patch)
treef197446387a2f3de57feb00e35bc6f1d78080916 /seq.in
parent9f3a7543aa4442fedf56ff94150d38199e194cf4 (diff)
Minor tweaks, including a few small performance improvements
darcs-hash:20060204130914-ac50b-331e83fd8fe472545fce60fc4b76bb8300526d64.gz
Diffstat (limited to 'seq.in')
-rwxr-xr-xseq.in19
1 files changed, 12 insertions, 7 deletions
diff --git a/seq.in b/seq.in
index 14598778..0bd242d4 100755
--- a/seq.in
+++ b/seq.in
@@ -1,16 +1,21 @@
#!@prefix@/bin/fish
+#
+# Fallback implementation of the seq command
+#
+# @configure_input@
set -l from 1
set -l step 1
set -l to 1
-if test 1 = "@HAVE_GETTEXT@"; and which gettext >/dev/null ^/dev/null
- function _ -d "Alias for the gettext command"
- gettext fish $argv
- end
-else
- function _ -d "Alias for the gettext command"
- printf "%s" $argv
+function _ -d "Alias for the gettext command"
+ printf "%s" $argv
+end
+if test 1 = "@HAVE_GETTEXT@"
+ if which gettext ^/dev/null >/dev/null
+ function _ -d "Alias for the gettext command"
+ gettext fish $argv
+ end
end
end