3 ms·
Here's an easy way to see how this works. Run this script: echo dollar-star: for i in $; do echo $i; done echo dollar-at: for i in $@; do echo $i; done echo q
by marcacohen 7y ago
Here's an easy way to see how this works. Run this script:
echo dollar-star:
for i in $; do echo $i; done
echo dollar-at:
for i in $@; do echo $i; done
echo quoted-dollar-star:
for i in "$"; do echo $i; done
echo quoted-dollar-at:
for i in "$@"; do echo $i; done
./x.sh a "b c" d
dollar-star:
a
b
c
d
dollar-at:
a
b
c
d
quoted-dollar-star:
a b c d
quoted-dollar-at:
a
b c
d
- yesenadam 7y agoHN gobbled your stars.
- _kst_ 7y agohttps://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc Blank lines separate paragraphs. Text surrounded by asterisks is italicized, if the character after the first asterisk isn't whitespace. Text after a blank line that is indented by two or more spaces is reproduced verbatim. (This is intended for code.) Urls become links, except in the text field of a submission.