Re: [wmii] snap: 20060313 -- tag bugs?

From: Anselm R. Garbe <garbeam_AT_wmii.de>
Date: Thu, 16 Mar 2006 11:38:04 +0100

On Thu, Mar 16, 2006 at 11:31:17AM +0100, Stefan Tibus wrote:
> On Thu, Mar 16, 2006 at 10:50:59AM +0100, Anselm R. Garbe wrote:
> > > However I wonder why I need the echo -n but can't
> > > just do
> > > wmiir read /tags | sort | wmiimenu | wmiir write /ws/sel/sel/tags ;;
> > > to assign new tags. This had been my first approach.
> >
> > Because wmiimenu prints "selection\n" to stdout that it can be
> > used in conjunction with read.
> That's not true here, if I do:
> $ echo "bla\nblu" | wmiimenu
> blu$
>
> With a newline I would get the same as here:
> $ echo blu
> blu
> $
>
> You may as well verify that with hexdump:
> $ echo "bla\nblu" | wmiimenu | hexdump
> 0000 62 6c 61 bla
> $

Ah, you're right, didn't noticed that this has been changed,
thus you don't need the echo -n in my eyes. wmiimenu does not
append '\n'.

Regards,

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Thu Mar 16 2006 - 11:38:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:01:15 UTC