At Sun, 21 Mar 2010 18:53:56 +0100, Rémi Vanicat wrote:

Hello,

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

Does it?  Well okay, could do, patches welcome ;-)
Would need to be applied to all other relevant commands too then.

Feel free to file a bug.

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

Yes, though nyxmms2 add is more like xmms2 radd, which doesn't output
anything.  nyxmms2 will tell the /server/ to add stuff recursively, so
it doesn't know exactly what's being added from directories.

I suppose what it could do is:

$ nyxmms2 add foo.mp3 somedir/
Added foo.mp3
Added somedir/ recursively

Would that be good enough?

Shouldn't be too hard to fix.

-- 
Sébastien Cevey / inso.cc

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

Reply via email to