summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2009-01-13 19:27:06 (GMT)
committerColin Watson <cjwatson@debian.org>2009-01-13 19:27:06 (GMT)
commit2247086953100aaaefd19147e5aeb3c3e6ee63ee (patch)
treef06ae3305c4c2eef2b7f45056bdb893a95773bef /functions
parentd3587e58fe6b46a1361dc8e35258a898b6edb1a2 (diff)
downloaddebootstrap-2247086953100aaaefd19147e5aeb3c3e6ee63ee.zip
debootstrap-2247086953100aaaefd19147e5aeb3c3e6ee63ee.tar.gz
debootstrap-2247086953100aaaefd19147e5aeb3c3e6ee63ee.tar.bz2
Rename 'repeat' to 'repeatn', since 'repeat' is a reserved word in zsh;
although strictly speaking this seems like an incompatibility in zsh when linked to /bin/sh (closes: #340058). r57242
Diffstat (limited to 'functions')
-rw-r--r--functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions b/functions
index b9180ba..39c946f 100644
--- a/functions
+++ b/functions
@@ -1096,7 +1096,8 @@ without () {
echo
}
-repeat () {
+# Formerly called 'repeat', but that's a reserved word in zsh.
+repeatn () {
local n="$1"
shift
while [ "$n" -gt 0 ]; do