From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Sun, 11 Nov 2007 20:13:40 -0800 Subject: [sup-talk] patch: execute shell command In-Reply-To: <1194536747-sup-4081@timmy> References: <1194536747-sup-4081@timmy> Message-ID: <1194840554-sup-9310@south> Hi Eyal, Excerpts from Eyal Oren's message of Thu Nov 08 07:47:30 -0800 2007: > Find attached a simple patch (against svn head) to execute a shell > command using '!' (as in vi or mutt). It requires the 'session' gem: > if you want to get rid of that dependency you can just capture the > output using >& etc. I like this functionality but the session gem seems like it's overkill here. Is there a reason to use it instead of just something like output = `#{cmd}` ? I'm not that familiar with the gem, so maybe there is. Also I think the code for this should be in bin/sup rather than in scroll-mode.rb, since, unless I'm mistaken, it's not specific to scroll-mode at all. -- William