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 _______________________________________________ [email protected] mailing list http://wmii.de/cgi-bin/mailman/listinfo/wmii
