{"version":"1.0","provider_url":"https://hatena.blog","title":"\u5b9f\u884c\u6642\u306b\u81ea\u5206\u81ea\u8eab\u3092\u66f8\u304d\u63db\u3048\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8","blog_title":"ablog","url":"https://yohei-a.hatenablog.jp/entry/20100209/1265664080","image_url":null,"published":"2010-02-09 06:21:20","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohei-a.hatenablog.jp%2Fentry%2F20100209%2F1265664080\" title=\"\u5b9f\u884c\u6642\u306b\u81ea\u5206\u81ea\u8eab\u3092\u66f8\u304d\u63db\u3048\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8 - ablog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/yohei-a/","width":"100%","description":"$ cat hoge.sh #!/bin/bash cat <<EOF > $0 #!/bin/bash exit 1 EOF exit 0 $ ./hoge.sh $ echo $? 0 $ ./hoge.sh $ echo $? 1 $ cat hoge.sh #!/bin/bash exit 1 \u521d\u56de\u5b9f\u884c\u6642\u306f\u623b\u308a\u5024\u304c 0 \u3060\u304c\u30012 \u56de\u76ee\u4ee5\u964d\u306f\u623b\u308a\u5024\u304c 1 \u306b\u306a\u308b\u3002","type":"rich","height":"190","author_name":"yohei-a","blog_url":"https://yohei-a.hatenablog.jp/","provider_name":"Hatena Blog","categories":["bash"]}