Skip to content

Instantly share code, notes, and snippets.

@nodakai
Created February 11, 2016 07:35
Show Gist options
  • Select an option

  • Save nodakai/ce9f840ffcd684dc3e31 to your computer and use it in GitHub Desktop.

Select an option

Save nodakai/ce9f840ffcd684dc3e31 to your computer and use it in GitHub Desktop.
#!/bin/sh
RSYNC() {
echo rsync -av "$@"
local i
for i in "$@"; do
echo "[$i]"
done
}
RSYNC 'a b c' 'd e f'
echo "[$i]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment