-
-
Save d630/9d96d94f357c7f383ce00f154cc56ddc to your computer and use it in GitHub Desktop.
shell: things you never see
This file contains 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
# | |
for i | |
in {0..9} | |
do | |
echo "$i" | |
done | |
# | |
case "$p" | |
in | |
(foo) : ;; | |
(*) false | |
esac | |
# | |
: "${\ | |
foo=bar\ | |
}" | |
# https://github.com/oilshell/oil/issues/3 | |
[[ ('(x=5, y[10]+=5), x*=y[10]' -eq x) && y[2]==y[10]?1:0 -eq 0 ]] | |
# http://lists.gnu.org/archive/html/help-bash/2017-03/msg00008.html | |
if(echo -n fo)then(echo o)fi | |
({(:)}) | |
# | |
a=([arithmetic, 1+1]= [-1]=foo) | |
# | |
echo ${_[up, 1]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for i in x
was a new form in the history of for-loops