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.  It's the difference betweek "lookup
properties for X" and "find all matching X and lookup their
properties".

For instance:

$ nyxmms2 info title:DoesNotExist
$ echo $?
0

would be normal. So I don't think that's an error.  You could just
check the number of lines the command returns.

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...

-- 
Sébastien Cevey / inso.cc

" Mirrors and copulation are obscene, for they increase the numbers of mankind. 
"
Jorge Luis Borges  [ Tlön, Uqbar, Orbis Tertius ]

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

Reply via email to