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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.