Re: [dev] dmenu : auto confirm when only one item remains

From: Antoni Grzymala <antoni_AT_chopin.edu.pl>
Date: Thu, 13 Aug 2009 16:57:12 +0200

markus schnalke dixit (2009-08-13, 16:35):

> [2009-08-13 16:27] Antoni Grzymala <antoni_AT_chopin.edu.pl>
> > Lorenzo Bolla dixit (2009-08-13, 11:07):
> >
> > > On Thu, Aug 13, 2009 at 10:11 AM, Anselm R Garbe <garbeam_AT_gmail.com> wrote:
> > >
> > > > What about
> > > >
> > > > echo 'rm -rf /' | dmenu?
> > >
> > > I bet someone's gonna try it...
> >
> > It's not gonna do anything by itself.
>
> Not now ... but with the proposed change.

Still it's not. dmenu does not actually *run* the commands displayed.

This would have done what you suggest it does:

$(echo 'rm -rf /' | dmenu) # or backquoted, or otherwise evaled.

-- 
[a]

Received on Thu Aug 13 2009 - 14:57:12 UTC

This archive was generated by hypermail 2.2.0 : Sun Aug 16 2009 - 14:18:47 UTC