{"id":3016,"date":"2025-10-19T22:32:36","date_gmt":"2025-10-19T13:32:36","guid":{"rendered":"https:\/\/blog.id774.net\/entry\/?p=3016"},"modified":"2025-10-27T00:34:42","modified_gmt":"2025-10-26T15:34:42","slug":"%e3%82%b7%e3%82%a7%e3%83%ab%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%81%a7%e3%81%ae%e6%9c%ab%e5%b0%be%e3%81%ae-exit-%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/blog.id774.net\/entry\/2025\/10\/19\/3016\/","title":{"rendered":"\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306e\u672b\u5c3e\u306e exit \u306b\u3064\u3044\u3066"},"content":{"rendered":"<p class=\"note\">\u3044\u307e\u307e\u3067<a href=\"https:\/\/blog.id774.net\/entry\/2025\/09\/22\/3003\/\">\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8<\/a>\u306e\u6700\u5f8c\u3067\u660e\u793a\u7684\u306b exit $? \u3057\u3066\u3044\u305f\u304c\u3001\u305d\u308c\u3092\u907f\u3051\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u4ee5\u4e0b\u3001\u305d\u306e\u5224\u65ad\u306e\u6839\u62e0\u3068\u5b9f\u88c5\u6307\u91dd\u3092\u307e\u3068\u3081\u308b\u3002<\/p>\n<hr>\n<h2>\u80cc\u666f<\/h2>\n<p>\u5f93\u6765\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u672b\u5c3e\u306b exit $? \u3092\u7f6e\u304d\u3001\u76f4\u524d\u306e\u30b3\u30de\u30f3\u30c9\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u660e\u793a\u7684\u306b\u8fd4\u3057\u3066\u3044\u305f\u3002\u3057\u304b\u3057\u3001\u518d\u5229\u7528\u6027\uff08\u4ed6\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u306e source \u5b9f\u884c\uff09\u3084 POSIX \u306e\u5b9f\u884c\u30e2\u30c7\u30eb\u3092\u8e0f\u307e\u3048\u308b\u3068\u3001\u672b\u5c3e\u304c main &#8220;$@&#8221; \u306e\u307f\u3067\u3042\u308c\u3070 exit $? \u306f\u5197\u9577\u3067\u3042\u308a\u3001\u3080\u3057\u308d\u30ea\u30b9\u30af\u3068\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u3002<\/p>\n<hr>\n<h2>\u7d50\u8ad6<\/h2>\n<ul>\n<li>\u672b\u5c3e\u304c main &#8220;$@&#8221; \u306e\u307f\u3067\u3042\u308c\u3070\u3001exit \u3092\u66f8\u304b\u306a\u3044\uff08\u6700\u5f8c\u306b\u5b9f\u884c\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u304c\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u306b\u306a\u308b\uff09\u3002<\/li>\n<li>source \u3055\u308c\u5f97\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001\u672b\u5c3e\u306e exit \u7981\u6b62\u3002\u5fc5\u8981\u306a\u3089\u95a2\u6570\u304b\u3089 return \u3059\u308b\u3002<\/li>\n<li>\u5f8c\u51e6\u7406\u304c\u5fc5\u8981\u3067\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u4fdd\u6301\u3057\u305f\u3044\u5358\u4f53\u5b9f\u884c\u30c4\u30fc\u30eb\u306e\u307f\u3001\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u9000\u907f\u3057\u3066\u6700\u5f8c\u306b exit &#8220;$status&#8221; \u3092\u660e\u793a\u3059\u308b\u3002<\/li>\n<\/ul>\n<hr>\n<h2>POSIX \u89b3\u70b9\u306e\u8981\u70b9<\/h2>\n<ul>\n<li>exit \u306f\u300c\u73fe\u5728\u306e\u30b7\u30a7\u30eb\u5b9f\u884c\u74b0\u5883\u300d\u3092\u7d42\u4e86\u3059\u308b\uff08\u5f15\u6570\u304c\u7d42\u4e86\u30b9\u30c6\u30fc\u30bf\u30b9\uff09\u3002<\/li>\n<li>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7d42\u4e86\u30b9\u30c6\u30fc\u30bf\u30b9\u306f\u3001\u539f\u5247\u3068\u3057\u3066\u6700\u5f8c\u306b\u5b9f\u884c\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u306e\u7d42\u4e86\u30b9\u30c6\u30fc\u30bf\u30b9\u3002<\/li>\n<li>return \u306f\u95a2\u6570\u304a\u3088\u3073 dot script\uff08source\uff09\u304b\u3089\u547c\u3073\u51fa\u3057\u5143\u306b\u623b\u308b\u3002<\/li>\n<\/ul>\n<hr>\n<h2>\u5b9f\u884c\u5f62\u614b\u3054\u3068\u306e\u6319\u52d5<\/h2>\n<ul>\n<li>\u72ec\u7acb\u30d7\u30ed\u30bb\u30b9\uff08sh script.sh \/ .\/script.sh\uff09: exit \u306f\u305d\u306e\u30b5\u30d6\u30b7\u30a7\u30eb\u306e\u307f\u7d42\u4e86\u3002\u89aa\u30b7\u30a7\u30eb\u306f\u7d99\u7d9a\u3002<\/li>\n<li>source \u5b9f\u884c\uff08. script.sh \/ source script.sh\uff09: exit \u306f\u73fe\u5728\u306e\u30b7\u30a7\u30eb\u3092\u7d42\u4e86\u3057\u3001\u547c\u3073\u51fa\u3057\u5143\u3092\u5dfb\u304d\u8fbc\u3080\u3002<\/li>\n<li>\u95a2\u6570\u5185: exit \u306f\u30b7\u30a7\u30eb\u5168\u4f53\u3092\u7d42\u4e86\u3002return \u3068\u76ee\u7684\u304c\u7570\u306a\u308b\u3002<\/li>\n<\/ul>\n<hr>\n<h2>\u672b\u5c3e\u306b exit $? \u3092\u66f8\u304f\u5229\u70b9\u3068\u6b20\u70b9<\/h2>\n<p><strong>\u5229\u70b9<\/strong><\/p>\n<ul>\n<li>\u5f8c\u51e6\u7406\u304c\u672b\u5c3e\u306b\u3042\u308b\u5834\u5408\u3067\u3082\u3001\u610f\u56f3\u3057\u305f\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u78ba\u5b9f\u306b\u8fd4\u305b\u308b\u3002<\/li>\n<\/ul>\n<p><strong>\u6b20\u70b9<\/strong><\/p>\n<ul>\n<li>source \u3055\u308c\u305f\u3068\u304d\u306b\u89aa\u3092\u7d42\u4e86\u3055\u305b\u308b\u30ea\u30b9\u30af\u3002<\/li>\n<li>\u672b\u5c3e\u304c main &#8220;$@&#8221; \u306e\u307f\u306a\u3089\u5197\u9577\uff08\u7701\u7565\u3067\u7b49\u4fa1\uff09\u3002<\/li>\n<li>\u30e9\u30c3\u30d1\u30fc\u3084\u30c6\u30b9\u30c8\u3067\u518d\u5229\u7528\u6027\u304c\u4f4e\u4e0b\u3002<\/li>\n<\/ul>\n<hr>\n<h2>\u3088\u304f\u3042\u308b\u843d\u3068\u3057\u7a74<\/h2>\n<ul>\n<li>\u672b\u5c3e\u306b\u5225\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308b\u3068\u7d42\u4e86\u30b3\u30fc\u30c9\u304c\u4e0a\u66f8\u304d\u3055\u308c\u308b\u3002\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">main &quot;$@&quot;<br \/>\necho &quot;done&quot; &nbsp;# \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u306f 0 \u306b\u306a\u308b<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u5bfe\u7b56: \u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u9000\u907f\u3057\u3066\u660e\u793a\u7684\u306b exit &#8220;$status&#8221; \u3059\u308b\u304b\u3001\u672b\u5c3e\u3092 main &#8220;$@&#8221; \u306e\u307f\u306b\u3059\u308b\u3002\n  <\/li>\n<li>\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3: POSIX \u3067\u306f\u30d1\u30a4\u30d7\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u306f\u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u3002set -o pipefail \u306f\u975e\u6a19\u6e96\uff08bash \u7b49\u306e\u62e1\u5f35\uff09\u3002\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\"># \u4f8b: \u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u3060\u3051\u304c\u8fd4\u308b<br \/>\ncmd1 | cmd2<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<\/li>\n<li>\u30b7\u30d0\u30f3\u306a\u3057\u306e\u30d5\u30a1\u30a4\u30eb\u306f source \u3055\u308c\u3084\u3059\u304f\u3001exit \u304c\u89aa\u3092\u843d\u3068\u3057\u5f97\u308b\u3002<\/li>\n<li>trap EXIT \u3092\u4f7f\u3046\u5834\u5408\u3001exit \u547c\u51fa\u306b\u3088\u308a\u7d42\u4e86\u6642\u51e6\u7406\u306e\u9806\u5e8f\u306b\u5f71\u97ff\u304c\u51fa\u308b\u3002<\/li>\n<\/ul>\n<hr>\n<h2>\u63a8\u5968\u30d1\u30bf\u30fc\u30f3<\/h2>\n<p><strong>1) \u518d\u5229\u7528\u6027\u91cd\u8996\uff08\u6700\u5c0f\uff09<\/strong><\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">main &quot;$@&quot;<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p><strong>2) \u5f8c\u51e6\u7406\u304c\u5fc5\u8981\u3067\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u4fdd\u6301\u3057\u305f\u3044\u5358\u4f53\u5b9f\u884c\u30c4\u30fc\u30eb<\/strong><\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">status=0&lt;br&gt;main &quot;$@&quot; || status=$?<br \/>\n# \u5fc5\u8981\u306a\u5f8c\u51e6\u7406\u2026<br \/>\nexit &quot;$status&quot;<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u6700\u3082\u5b89\u5168\u306a\u306e\u306f\u672b\u5c3e\u3092 main &#8220;$@&#8221; \u306e\u307f\u306b\u3059\u308b\u3053\u3068\u3002\u3069\u3046\u3057\u3066\u3082\u5206\u5c90\u304c\u5fc5\u8981\u306a\u3089\u3001\u5b9f\u884c\u5f62\u614b\u3092\u691c\u51fa\u3057\u3066 source \u6642\u306f exit \u3057\u306a\u3044\u8a2d\u8a08\u306b\u3059\u308b\uff08\u305f\u3060\u3057 POSIX \u3067\u306f\u691c\u51fa\u624b\u6bb5\u304c\u9650\u5b9a\u7684\uff09\u3002<\/p>\n<hr>\n<h2>\u4f7f\u3044\u5206\u3051\u30c1\u30a7\u30c3\u30af\u30ea\u30b9\u30c8<\/h2>\n<ul>\n<li>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f source \u3055\u308c\u3046\u308b\u304b \u2192 Yes \u306a\u3089\u672b\u5c3e\u306b exit \u3092\u66f8\u304b\u306a\u3044\u3002<\/li>\n<li>\u672b\u5c3e\u4ee5\u5916\u306b\u5f8c\u51e6\u7406\u304c\u5fc5\u8981\u304b \u2192 Yes \u306a\u3089\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u9000\u907f\u3057\u3001\u5358\u4f53\u5b9f\u884c\u5c02\u7528\u306a\u3089\u6700\u5f8c\u306b exit &#8220;$status&#8221;\u3002<\/li>\n<li>\u672b\u5c3e\u304c\u30d1\u30a4\u30d7\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b \u2192 \u5fc5\u8981\u306a\u3089\u8a2d\u8a08\u3092\u898b\u76f4\u3059\u3002<\/li>\n<li>trap \u306e\u9806\u5e8f\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u304b\u3002<\/li>\n<\/ul>\n<hr>\n<h2>\u4eca\u56de\u306e\u65b9\u91dd\u5909\u66f4<\/h2>\n<p>\u5168\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u672b\u5c3e\u306e exit $? \u3092\u64a4\u53bb\u3057\u3001\u518d\u5229\u7528\u6027\u3068\u5b89\u5168\u6027\u3092\u512a\u5148\u3059\u308b\u65b9\u91dd\u306b\u7d71\u4e00\u3057\u305f\u3002\u5358\u4f53\u5b9f\u884c\u30c4\u30fc\u30eb\u3067\u5f8c\u51e6\u7406\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u7d42\u4e86\u30b3\u30fc\u30c9\u9000\u907f\u306e\u3046\u3048\u3067\u660e\u793a\u7684\u306a exit \u3092\u7528\u3044\u308b\u3002<\/p>\n<hr>\n<h2>\u88dc\u8db3: \u62e1\u5f35\u5b50\u306a\u3057\u30d5\u30a1\u30a4\u30eb\u3092\u542b\u3080\u81ea\u52d5\u4fee\u6b63<\/h2>\n<p>\u62e1\u5f35\u5b50\u306a\u3057\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u542b\u3081\u3064\u3064\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3060\u3051\u3092\u5bfe\u8c61\u306b\u3059\u308b\u7c21\u6f54\u306a Python \u4f8b\uff08\u51fa\u529b\u3084\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306a\u3057\uff09\u3002<\/p>\n<div class=\"codecolorer-container text geshi\" style=\"overflow:auto;white-space:nowrap;width:1000px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/>10<br \/>11<br \/>12<br \/>13<br \/>14<br \/>15<br \/>16<br \/>17<br \/>18<br \/>19<br \/>20<br \/>21<br \/>22<br \/>23<br \/>24<br \/>25<br \/><\/div><\/td><td><div class=\"text codecolorer\" style=\"white-space:nowrap\">#!\/usr\/bin\/env python3<br \/>\nimport pathlib, re<br \/>\n<br \/>\nshebang_re = re.compile(r'^#!.*\\b(sh|bash|dash|ksh|zsh)\\b')<br \/>\n<br \/>\ndef is_shell_file(p: pathlib.Path) -&gt; bool:<br \/>\n&nbsp; &nbsp; if p.suffix == '.sh':<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; return True<br \/>\n&nbsp; &nbsp; if p.suffix == '' and p.is_file():<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; try:<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with p.open('r', errors='ignore') as f:<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; first = f.readline()<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return bool(shebang_re.match(first))<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; except Exception:<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return False<br \/>\n&nbsp; &nbsp; return False<br \/>\n<br \/>\nfor path in pathlib.Path('.').rglob('*'):<br \/>\n&nbsp; &nbsp; if not is_shell_file(path):<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; continue<br \/>\n&nbsp; &nbsp; text = path.read_text(errors='ignore')<br \/>\n&nbsp; &nbsp; lines = text.rstrip().splitlines()<br \/>\n&nbsp; &nbsp; if lines and lines[-1].strip() == 'exit $?':<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; new_text = '\\n'.join(lines[:-1]).rstrip() + '\\n'<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; path.write_text(new_text)<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<hr>\n<h2>\u307e\u3068\u3081<\/h2>\n<ul>\n<li>exit $? \u306f\u300c\u660e\u793a\u7684\u306b\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u8fd4\u3059\u300d\u305f\u3081\u306e\u624b\u6bb5\u3060\u304c\u3001\u672b\u5c3e\u304c main &#8220;$@&#8221; \u3060\u3051\u306a\u3089\u4e0d\u8981\u3067\u3042\u308a\u3001source \u6642\u306b\u306f\u5371\u967a\u3002<\/li>\n<li>\u57fa\u672c\u306f\u672b\u5c3e\u306b exit \u306f\u66f8\u304b\u306a\u3044\u3002\u5fc5\u8981\u306a\u3068\u304d\u3060\u3051\u3001\u7d42\u4e86\u30b3\u30fc\u30c9\u3092\u4fdd\u6301\u3057\u3066\u660e\u793a\u3059\u308b\u3002<\/li>\n<li>\u3053\u308c\u306b\u3088\u308a\u3001\u5358\u4f53\u5b9f\u884c\u6642\u306e\u6319\u52d5\u306f\u4e0d\u5909\u306e\u307e\u307e\u3001\u518d\u5229\u7528\u6027\u3068\u5b89\u5168\u6027\u304c\u5411\u4e0a\u3059\u308b\u3002<\/li>\n<\/ul>\n<hr>\n<p>\u672c\u8a18\u4e8b\u306e\u65b9\u91dd\u306f POSIX \u306e\u5b9f\u884c\u30e2\u30c7\u30eb\uff08\u30b7\u30a7\u30eb\u306e\u7d42\u4e86\u30b3\u30fc\u30c9\u306f\u6700\u5f8c\u306e\u30b3\u30de\u30f3\u30c9\u306b\u4e00\u81f4\u3001exit\/return \u306e\u5f79\u5272\u5206\u62c5\uff09\u306b\u57fa\u3065\u304f\u5b9f\u52d9\u7684\u306a\u8a2d\u8a08\u3067\u3042\u308b\u3002\u306a\u304a\u3001set -o pipefail \u306f POSIX \u3067\u306f\u898f\u5b9a\u3055\u308c\u305a\u3001\u5404\u30b7\u30a7\u30eb\u5b9f\u88c5\u306e\u62e1\u5f35\u3067\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u307e\u307e\u3067\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6700\u5f8c\u3067\u660e\u793a\u7684\u306b exit $? \u3057\u3066\u3044\u305f\u304c\u3001\u305d\u308c\u3092\u907f\u3051\u308b\u3053\u3068\u306b\u3057\u305f\u3002\u4ee5\u4e0b\u3001\u305d\u306e\u5224\u65ad\u306e\u6839\u62e0\u3068\u5b9f\u88c5\u6307\u91dd\u3092\u307e\u3068\u3081\u308b\u3002 \u80cc\u666f \u5f93\u6765\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u672b\u5c3e\u306b exit $? \u3092\u7f6e\u304d\u3001\u76f4\u524d\u306e\u30b3\u30de\u30f3\u30c9\u306e\u7d42\u4e86\u30b3\u30fc\u30c9 &#8230; <a title=\"\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306e\u672b\u5c3e\u306e exit \u306b\u3064\u3044\u3066\" class=\"read-more\" href=\"https:\/\/blog.id774.net\/entry\/2025\/10\/19\/3016\/\" aria-label=\"\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306e\u672b\u5c3e\u306e exit \u306b\u3064\u3044\u3066 \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,14],"tags":[],"class_list":["post-3016","post","type-post","status-publish","format-standard","hentry","category-diary","category-tech"],"_links":{"self":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts\/3016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/comments?post=3016"}],"version-history":[{"count":0,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/posts\/3016\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/media?parent=3016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/categories?post=3016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.id774.net\/entry\/wp-json\/wp\/v2\/tags?post=3016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}