bash: /etc/profile: line 276: syntax error: unexpected end of file
I'm running SuSE 7.3. I made some modifications to my /root/.alias file and my /root/.bashrc file. Now when I log in I get the error in the subject line. If I rename the .alias file the function in .bashrc works, if I rename the .bashrc the .alias works, but not both together. What am I missing? The two files are listed below. Many thanks for any help.. .bashrc function wcd { $HOME/bin/wcd.exe $* source $HOME/bin/wcd.go } .alias alias df='df -h' alias bin='. bin' alias etc='. etc' alias http='. http' alias dl='. dl' alias docs='. docs' alias home='. home' alias morn='. morn' alias env='. env' alias inv='. inv' alias log='. log' alias mp3='. mp3' alias mpg='. mpg' alias sto='. sto' alias sound='. sound' alias ro='. ro' alias news=". news" alias htdocs=". htdocs" alias cgi=". cgi" alias fi='. fi' alias c='. c' alias wk='. wk' alias pro='. pro' -- (o< //\ Powered by SuSE Linux V_/_ Virusproof. Crashproof. 8:21am up 16 days, 15:18, 29 users, load average: 1.08, 1.15, 1.16 processes 1488498
* Thu, 19 Jun 2003, bobm@robtmil.com:
I'm running SuSE 7.3. I made some modifications to my /root/.alias file and my /root/.bashrc file. Now when I log in I get the error in the subject line. If I rename the .alias file the function in .bashrc works, if I rename the .bashrc the .alias works, but not both together. What am I missing? The two files are listed below. Many thanks for any help..
.bashrc function wcd { $HOME/bin/wcd.exe $* source $HOME/bin/wcd.go }
$ help function function: function NAME { COMMANDS ; } or NAME () { COMMANDS ; } ^ ^ Don't forget the semicolons. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 27N , 4 29 45E. SuSE 8.2 x86 Kernel k_Athlon 2.4.20-4GB See headers for PGP/GPG info.
participants (2)
-
Robt. Miller
-
Theo v. Werkhoven