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
        $


Regards,
Stefan

_______________________________________________
[email protected] mailing list
http://wmii.de/cgi-bin/mailman/listinfo/wmii

Reply via email to