Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying to write a simple bash script to replace the system.mwmrc with a modified one. There are currently 3 possible versions of system.mwmrc out there depending upon what type of terminal they have. We gave them a menu to select the terminal type depending upon their location in the store.
( Obvously the echo TADA is just to test the script. I expect the script to be a run once deal)
I keep getting messages about too many arguments in line 5 ( the if statement )
If I physically change the line in system.mwmrc to pby:RETAIL and change the if statement as well, it works. It appears that the script doesn't like the SPACES in the pbyver line. Is there anyway I can get this to work? Can I just fix on the first word somehow if need be?