LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2008, 03:24 PM   #1
lightningdan
LQ Newbie
 
Registered: Nov 2003
Posts: 14

Rep: Reputation: 0
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
 
Old 04-29-2008, 07:24 AM   #2
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
try deleting the ` right before "mungefilename"
 
Old 04-30-2008, 07:04 PM   #3
lightningdan
LQ Newbie
 
Registered: Nov 2003
Posts: 14

Original Poster
Rep: Reputation: 0
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...
 
Old 04-30-2008, 09:35 PM   #4
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
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.
 
Old 05-01-2008, 10:38 PM   #5
lightningdan
LQ Newbie
 
Registered: Nov 2003
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 10-21-2008, 06:33 AM   #6
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,364

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
Annoying syntax error with named.conf d0ugb Linux - Networking 7 08-07-2005 12:20 PM
httpd.conf Syntax error tommytomato Linux - Newbie 2 05-25-2004 05:10 AM
lilo.conf syntax error BBlalock Linux - Newbie 9 07-28-2002 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration