{"id":5656,"date":"2016-10-20T12:21:00","date_gmt":"2016-10-20T16:21:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=5656"},"modified":"2016-10-20T12:21:13","modified_gmt":"2016-10-20T16:21:13","slug":"redirecting-eshell-output-to-another-buffer","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=5656","title":{"rendered":"Redirecting <code>eshell<\/code> Output to Another Buffer"},"content":{"rendered":"<p> This <\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p lang=\"en\" dir=\"ltr\"><a href=\"https:\/\/twitter.com\/hashtag\/emacs?src=hash\">#emacs<\/a> tip of the week: M-x eshell then type ls -lh &gt;&gt; #&lt;foo&gt; and see the command output be appended to the &quot;foo&quot; buffer!<\/p>\n<p>&mdash; Stathis Sideris (@stathissideris) <a href=\"https:\/\/twitter.com\/stathissideris\/status\/788395340110163970\">October 18, 2016<\/a><\/p><\/blockquote>\n<p> <script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p> is kind of cute but, of course, there are more direct ways of getting an external command&#8217;s output into an Emacs buffer. Still, one can imagine where something like this might be useful. It shows, once again, how powerful the Emacs environment is and serves as an another example of why many of us never want to leave Emacs. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This #emacs tip of the week: M-x eshell then type ls -lh &gt;&gt; #&lt;foo&gt; and see the command output be appended to the &quot;foo&quot; buffer! &mdash; Stathis Sideris (@stathissideris) October 18, 2016 is kind of cute but, of course, there &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=5656\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-5656","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5656"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5656\/revisions"}],"predecessor-version":[{"id":5657,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5656\/revisions\/5657"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}