May 2017
Beginner
552 pages
28h 47m
English
Define a function in the following way:
repeat()
{
while true
do
$@ && return
done
}
Alternatively, add this to your shell's rc file for ease of use:
repeat() { while true; do $@ && return; done }