LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   abcde.conf syntax error in mungefilename () (https://www.linuxquestions.org/questions/linux-software-2/abcde-conf-syntax-error-in-mungefilename-638470/)

lightningdan 04-28-2008 03:24 PM

abcde.conf syntax error in mungefilename ()
 
Hey, I am using gentoo, and I installed abcde with all of the available use flags. I am using a configuration file that I found off of a website (http://www.andrews-corner.org/abcde.html#combo).
The problem is that I always get an error on the line I declare mungefilename ():

.abcde.conf: line 49: syntax error near unexpected token `
.abcde.conf: line 49: `mungefilename ()

I have no clue what this is about. I have tried multiple versions (2.3.0) and some pre-release versions gentoo offers. Same error if I move the function mungefilename anywhere else, I get an identical error on the line it is declared on. I get this error regardless of the contents of the function.

I need this function to rename the files and replace some special characters so that the filenames are windows compatible.

Anyone have any ideas?

Thanks, Dan

SharpyWarpy 04-29-2008 07:24 AM

try deleting the ` right before "mungefilename"

lightningdan 04-30-2008 07:04 PM

I kinda managed to fix the issue.

Thanks for the reply.
If you look at the conf file I am using (follow link), you will realize that there isn't any such character before mungefilename (). Relocating the function also doesn't help.

Here is what I did to make it work. I used an identical (except for the OUTPUTFORMAT variable) file and put it in /etc/abcde/abcde.conf. The current file was in ~/.abcde.conf. Apparently it doesn't like the function definition in that location? I can't figure out why else it works in the other directory. So, it seems to be working flawlessly now, so it was either a bug in the OUTPUTFORMAT variable definition or a bug/design decision in the parser that won't let you declare a function in your home dir conf file...

SharpyWarpy 04-30-2008 09:35 PM

My apologies, I did look at the link and didn't see the "error" there but I assumed the page author had fixed it by then.
Very interesting about local config file not being preferred by the system over the system wide file. I would have thought -- like you -- that yours would be. Glad you got it figured out, I like abcde too, been using it for years. I think it's being maintained by someone other than the original author now. I'm using version 2.3.99, have you tried some of the very early versions? In some respects they were better, like config, but I doubt they will work anymore because of changes in links to pictures, etc. Again, glad you got it working.

lightningdan 05-01-2008 10:38 PM

Oh, no apologies needed. I appreciate anyone trying to help. I just started using this software to make some copies of my old cds before they bite the dust. I like it a lot, since one of the alternatives is running everything manually. I really like that it is command line as well. I am using version 2.3.99 as well.

andrew.46 10-21-2008 06:33 AM

Hi,

Sorry I missed all the discussion on aspects of my abcde page a few months ago :-). Just saw it all now as I am preparing to springclean the page. It all seems a little odd as of course the file /etc/abcde.conf when installed from the source package is actually completely commented out.

The tricky syntax for the mungefilename function is lifted straight from the abcde man page and no backticks there.

So I am not sure what produced this problem. I have just finished converting a cd to flac / ogg / mp3 using my own page as a setup guide and cannot reproduce the problem that you have found. This using ~/.abcde.conf only but version 2.3.3 of abcde.

My goodnes the 3ple conversion eats up some serious disk space :-).

Andrew


All times are GMT -5. The time now is 07:13 AM.