Created
April 27, 2016 00:11
-
-
Save yamachu/dbe1deb70ad11d29537eb2297f2611ae to your computer and use it in GitHub Desktop.
: コマンドと論理演算でそれっぽく
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
#!/bin/zsh | |
: || echo '1st: 見えない' && { | |
echo '1st_inner: 見える' | |
} | |
: && echo '2nd: 見える' && { | |
echo '2nd_inner: 見える' | |
} | |
: && echo '3rd: 見える' || { | |
echo '3rd_inner: 見えない' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment