{"height":"190","blog_url":"https://mnzk.hatenablog.com/","url":"https://mnzk.hatenablog.com/entry/2013/11/14/234333","blog_title":"Code Aquarium","author_url":"https://blog.hatena.ne.jp/minazoko/","description":"$1. \u95a2\u6570\u5185\u518d\u5e30\u95a2\u6570\u3067 Join-Paths \u6700\u521d\u306b\u3061\u3087\u3063\u3068\u5bc4\u308a\u9053\u3002 \u524d\u56de\u30a8\u30f3\u30c8\u30ea\u3067\u306f\u3001\u5f15\u6570\u3092\u914d\u5217\u306b\u3057\u3066\uff13\u3064\u4ee5\u4e0a\u306e\u30d1\u30b9\u8981\u7d20\u9023\u7d50\u95a2\u6570\u3092\u66f8\u304d\u307e\u3057\u305f\u3002 Join-Path \u540c\u69d8\u306b\u53ef\u5909\u9577\u306e\u5f15\u6570\u306b\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f \u3067\u304d\u307e\u3057\u305f\u3002 function Join-Paths{ function rec ([string[]] $paths){ $parent, $rest = $paths if(-not $rest){ $parent }else{ Join-Path $parent (rec $rest) } } rec $args }PS C:\\> Join-Paths C: xxx yy\u2026","version":"1.0","categories":["PowerShell","Emacs Lisp"],"author_name":"minazoko","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmnzk.hatenablog.com%2Fentry%2F2013%2F11%2F14%2F234333\" title=\"(PowerShell)\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30b9\u30b3\u30fc\u30d7\u306aReduce - Code Aquarium\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","title":"(PowerShell)\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30b9\u30b3\u30fc\u30d7\u306aReduce","type":"rich","published":"2013-11-14 23:43:33","image_url":null,"provider_url":"https://hatena.blog"}