On Tue, Nov 11, 2014 at 16:15:55 +0000, Rory McNamara wrote:
> Hi, I've written a patch to allow you to run a command based on the least
> unambiguous portion of the command name. For example, prev can be called with
> pr, pre or prev, but not p becuase of play and playlist.
> 
> The patch is attached.

From the code, it looks like "precious" would also trigger "prev" (via
"pre") since it tries common prefixes *first*. I think it should always
do `strncmp(name, cmd, strlen(name))` to avoid such issues.

--Ben
_______________________________________________
mpd-devel mailing list
[email protected]
http://mailman.blarg.de/listinfo/mpd-devel

Reply via email to