<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5400308.post841456304188761185..comments</id><updated>2007-11-22T17:01:53.048-05:00</updated><title type='text'>Comments on McEs, A Hacker Life: Linux Shell Puzzle</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mces.blogspot.com/feeds/841456304188761185/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400308/841456304188761185/comments/default'/><link rel='alternate' type='text/html' href='http://mces.blogspot.com/2007/09/linux-shell-puzzle.html'/><author><name>behdad</name><uri>http://www.blogger.com/profile/15683613908300939375</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5400308.post-130972483649910842</id><published>2007-09-13T00:19:00.000-04:00</published><updated>2007-09-13T00:19:00.000-04:00</updated><title type='text'>I may have beat you in speed, but you rightly pwn ...</title><content type='html'>I may have beat you in speed, but you rightly pwn me in onelined-ness!&lt;BR/&gt;&lt;BR/&gt;Hats off :-)  And all the good in the world to anything that lets us unmount our /homes when stuff is still running!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400308/841456304188761185/comments/default/130972483649910842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400308/841456304188761185/comments/default/130972483649910842'/><link rel='alternate' type='text/html' href='http://mces.blogspot.com/2007/09/linux-shell-puzzle.html?showComment=1189657140000#c130972483649910842' title=''/><author><name>Rudd-O</name><uri>http://rudd-o.com/</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mces.blogspot.com/2007/09/linux-shell-puzzle.html' ref='tag:blogger.com,1999:blog-5400308.post-841456304188761185' source='http://www.blogger.com/feeds/5400308/posts/default/841456304188761185' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5400308.post-8297028358192020377</id><published>2007-09-06T14:38:00.000-04:00</published><updated>2007-09-06T14:38:00.000-04:00</updated><title type='text'>Ok, you got this one.  This is my version:#!/bin/b...</title><content type='html'>Ok, you got this one.  This is my version:&lt;BR/&gt;&lt;BR/&gt;#!/bin/bash&lt;BR/&gt;gdb /proc/$PPID/exe $PPID &lt;&lt;&lt;"p chdir(\"$1\")" &amp;&gt;/dev/null</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400308/841456304188761185/comments/default/8297028358192020377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400308/841456304188761185/comments/default/8297028358192020377'/><link rel='alternate' type='text/html' href='http://mces.blogspot.com/2007/09/linux-shell-puzzle.html?showComment=1189103880000#c8297028358192020377' title=''/><author><name>behdad</name><uri>http://www.blogger.com/profile/15683613908300939375</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='04900605915708655800'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mces.blogspot.com/2007/09/linux-shell-puzzle.html' ref='tag:blogger.com,1999:blog-5400308.post-841456304188761185' source='http://www.blogger.com/feeds/5400308/posts/default/841456304188761185' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5400308.post-5274855419195811784</id><published>2007-09-06T03:58:00.000-04:00</published><updated>2007-09-06T03:58:00.000-04:00</updated><title type='text'>Just for completeness.</title><content type='html'>&lt;A HREF="http://rudd-o.com/archives/2007/09/06/the-shell-challenge-changing-another-process-working-directory/" REL="nofollow"&gt;Just for completeness&lt;/A&gt;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400308/841456304188761185/comments/default/5274855419195811784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400308/841456304188761185/comments/default/5274855419195811784'/><link rel='alternate' type='text/html' href='http://mces.blogspot.com/2007/09/linux-shell-puzzle.html?showComment=1189065480000#c5274855419195811784' title=''/><author><name>Rudd-O</name><uri>http://rudd-o.com/</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mces.blogspot.com/2007/09/linux-shell-puzzle.html' ref='tag:blogger.com,1999:blog-5400308.post-841456304188761185' source='http://www.blogger.com/feeds/5400308/posts/default/841456304188761185' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5400308.post-6070636230016398141</id><published>2007-09-06T03:47:00.000-04:00</published><updated>2007-09-06T03:47:00.000-04:00</updated><title type='text'>Sorry, Behdad, try harder:----------------#!/bin/b...</title><content type='html'>Sorry, Behdad, try harder:&lt;BR/&gt;&lt;BR/&gt;----------------&lt;BR/&gt;#!/bin/bash&lt;BR/&gt;&lt;BR/&gt;pid="$PPID"&lt;BR/&gt;cwd="$1" # first argument is the CWD, there is a quoting bug below but I really couldn't care less&lt;BR/&gt;&lt;BR/&gt;gdb -q &lt;&lt; EOF&lt;BR/&gt;attach $pid&lt;BR/&gt;call (int) chdir("$cwd")&lt;BR/&gt;detach&lt;BR/&gt;quit&lt;BR/&gt;EOF&lt;BR/&gt;---------------&lt;BR/&gt;&lt;BR/&gt;Bash is my bitch.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400308/841456304188761185/comments/default/6070636230016398141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400308/841456304188761185/comments/default/6070636230016398141'/><link rel='alternate' type='text/html' href='http://mces.blogspot.com/2007/09/linux-shell-puzzle.html?showComment=1189064820000#c6070636230016398141' title=''/><author><name>Rudd-O</name><uri>http://rudd-o.com/</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://mces.blogspot.com/2007/09/linux-shell-puzzle.html' ref='tag:blogger.com,1999:blog-5400308.post-841456304188761185' source='http://www.blogger.com/feeds/5400308/posts/default/841456304188761185' type='text/html'/></entry></feed>