{"author_url":"https://blog.hatena.ne.jp/syuu1228/","version":"1.0","width":"100%","title":"\u5b9f\u969b\u306e\u3068\u3053\u308d\u5225\u306b/bin/[\u8981\u3089\u306a\u3044\u3088\u306d\u3068\u3044\u3046\u8a71","type":"rich","published":"2013-10-22 14:32:48","blog_url":"https://syuu1228.hatenablog.com/","url":"https://syuu1228.hatenablog.com/entry/20131022/1382419968","provider_url":"https://hatena.blog","height":"190","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsyuu1228.hatenablog.com%2Fentry%2F20131022%2F1382419968\" title=\"\u5b9f\u969b\u306e\u3068\u3053\u308d\u5225\u306b/bin/[\u8981\u3089\u306a\u3044\u3088\u306d\u3068\u3044\u3046\u8a71 - syuu1228&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"syuu1228","blog_title":"syuu1228's blog","provider_name":"Hatena Blog","description":"\u524d\u306bTL\u3067\u8a71\u984c\u306b\u306a\u3063\u3066\u305f\u3051\u3069\u8a18\u61b6\u304b\u3089\u307b\u307c\u98db\u3093\u3067\u3044\u305f\u306e\u3067\u30d6\u30ed\u30b0\u306b\u66f8\u3044\u3068\u304f\u3002/bin/sh\u304cbash\u306b\u306a\u3063\u3066\u305f\u308a\u3059\u308b\u3068\u56f0\u308b\u304b\u3089FreeBSD\u3067\u8a66\u3057\u305f\u3051\u3069\u5225\u306bLinux\u3067\u3082OSX\u3067\u3082\u305d\u3093\u306a\u306b\u5909\u308f\u3089\u306a\u3044\u306f\u305a\u3002 \u6a19\u6e96\u30b7\u30a7\u30eb\u304cbash\u306e\u72b6\u614b\u3067/bin/[\uff08\u5225\u306eOS\u3067\u306f/usr/bin/[\u304b\u3082\u3057\u308c\u306a\u3044\uff09\u3092\u4f7f\u3048\u306a\u304f\u3057\u3066\u3082\u3001builtin command\u306a\u306e\u3067\u666e\u901a\u306b\u52d5\u304f\u3002 [syuu@vm0 ~]$ which [ /bin/[ [syuu@vm0 ~]$ sudo mv /bin/[ /bin/[.bak [syuu@vm0 ~]$ if [ 1 -eq 1 ] ;then echo 1;fi 1 [syuu\u2026","categories":["FreeBSD","bash","shell"]}