Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash-4.1$ date +'hello world'
- hello world
- bash-4.1$ runWithDelay () { sleep $1; shift; ${@}; }
- bash-4.1$ runWithDelay 1 date +'hello world'
- date: extra operand `world'
- Try `date --help' for more information.
- bash-4.1$ runWithDelay () { sleep $1; shift; "${@}"; }
- bash-4.1$ runWithDelay 1 date +'hello world'
- hello world
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement