[Abcde-users] post_encode won't allow user input?

Roger rogerx.oss at gmail.com
Sat Nov 1 00:15:18 GMT 2014


> On Fri, Oct 31, 2014 at 05:12:14PM -0400, David Murphy wrote:
>   Using abcde 2.5.4 on Xubuntu 14.04
>
>   I'm trying to write an albumart fetching/displaying/selecting block into
>   the post_encode function in my ~/.abcde.conf. Unfortunately, after
>   displaying the list of options and prompting for input (via a bash
>   "select"), abcde blows right on through and finishes running before I even
>   get a chance to enter any input. Same thing happens if I try to offload
>   the select to an external script which is called from post_encode. Same
>   thing happens with read. Can anyone shed some light into why this happens
>   and/or how else to get user input?

I ran into some bugs with these post script functions about six to 12 months 
ago.

If I'm not mistaken and going from memory, I found them highly unreliable.  I 
opened several bugs during that time, including code cleanup request.  Since I 
didn't get much feedback (except some resistance ;-), I decided to not pursue 
the issues further.  You should find something about these post routines 
failing.  (They were one of the very last features hacked in, and I believe 
there are also some miniscule notes about them also being unreliable.)

I'd really like to see that one big blob main routine which is entirely piped 
into another blob cleaned up towards the end of abcde; so people can more 
easily trace code, color syntax will properly work within VI/VIM, and people 
can add more of their own functions without worrying about that blob.  (ie.  
That large block of code should look more like "my routine" | "piped into 
another routine" at the very least instead of piping 100-200 quoted lines into 
another 100-200 quoted lines. ;-)

You can either search for my opened bugs or insert a mess of printf/echo 
statements, and examine the log output files to see what is and what isn't 
excecuted.

Hope this helps!

-- 
Roger
http://rogerx.freeshell.org/



More information about the Abcde-users mailing list