Last active
November 10, 2016 15:36
-
-
Save masutaka/85b2686229267d153700cc74485f90eb to your computer and use it in GitHub Desktop.
Shell Script $* and $@
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo $* | |
echo --- | |
echo $@ | |
echo --- | |
echo "$*" | |
echo --- | |
echo "$@" | |
echo --- | |
for i in $*; do | |
echo $i | |
done | |
echo --- | |
for i in $@; do | |
echo $i | |
done | |
echo --- | |
for i in "$*"; do | |
echo $i | |
done | |
echo --- | |
for i in "$@"; do | |
echo $i | |
done |
Author
masutaka
commented
Nov 10, 2016
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment