Sébastien Cevey <s...@cine7.net> writes:

> At Sun, 21 Mar 2010 10:59:37 +0100, Johám-Luís Miguéns Vila wrote:
>
>> nyxmms2 info id:525252 ; echo $? 
>> Gives 0 and no output.
>
> That's the expected behaviour because you're passing a pattern and the
> properties for all matching media are returned.  If no media is
> matched, it's just the empty set.

Not quite sure. The same could be said of grep, but grep return an error
when there is no match. When we ask for info, we probably meant we want
some info, returning an error code can be seen as a logical reaction.

[...]

> However, I'm pretty sure that other commands don't set a non-zero
> return value even when an error was encountered, and that should be
> fixed indeed...

and nyxmms2 add give no feedback on how many songs were added, making
difficult to now that we just add none because of some typo... see
http://bugs.xmms2.xmms.se/view.php?id=2323



-- 
Rémi Vanicat


--
_______________________________________________
Xmms2-devel mailing list
Xmms2-devel@lists.xmms.se
http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel

Reply via email to