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
Received on Thu Mar 16 2006 - 11:31:49 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:01:15 UTC