#!/bin/sh
trap 'echo "/bin/infinite: Ctrl-C pressed..infinite does not care.."; sleep 2s' INT
source /etc/profile.sh

loop(){
  while sleep 1s; do
    "$@"
  done
}

loop "$@"