mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-14 18:33:55 +01:00
commit bash-20130301 snapshot
This commit is contained in:
1 parent
8eb22ee966
commit
c7e43312f9
220 files changed
+45368
-801
No files matched your search
@@ -0,0 +1,12 @@
|
||||
# From psamuels@jake.niar.twsu.edu (Peter Samuelson)
|
||||
# posted to usenet, Message-ID: <6rtp8j$2a0$1@jake.niar.twsu.edu>
|
||||
|
||||
repeat ()
|
||||
{
|
||||
local i max; # note that you can use \$i in the command string
|
||||
max=$1; shift;
|
||||
|
||||
i=1; while ((i <= max)); do
|
||||
eval "$@"; ((i = i + 1));
|
||||
done;
|
||||
}
|
||||
Reference in new issue
Block a user