Home > Syntax Error > Bashrc Line Syntax Error Unexpected End Of File

Bashrc Line Syntax Error Unexpected End Of File

Contents

If not, why? Browse other questions tagged bash syntax . Integral using residue theorem complex analysis How can I create a face with a rounded edge? However, out of a sudden, I'm getting these error messages: Quote: bash-4.1$ source .bashrc bash: ./.bashrc: line 73: syntax error: unexpected end of file bash-4.1$ source .bash_profile bash: ./.bash_profile: line 16: http://gatoisland.com/syntax-error/bashrc-line-13-syntax-error-unexpected-end-of-file.php

You're using a single quote to denote the contents of the alias but using the same single quote within the alias definition...I would think it would be breaking in and out Adv Reply January 6th, 2015 #4 Luxx View Profile View Forum Posts Private Message Gee! else return 127 fi } fi command-line bash share|improve this question edited Feb 27 at 10:22 kos 19.7k54789 asked Feb 27 at 10:20 Yurii Danylchenko 41 add a comment| 1 Answer Be done now!

Syntax Error Unexpected End Of File Php

Now I've a working simple .bash_aliases file as well as the original untouched .bashrc file. I'll test this in a few minutes (off for dinner now). h () { history | fgrep $1 | sort -u | cut -b 8- } Change it to this: h () { history | fgrep $1 | sort -u | cut xri View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by xri View Blog 12-22-2010, 08:40 AM #12 catkin LQ

Is my workplace warning for texting my boss's private phone at night justified? Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the Another thing you might try is having a an empty newline at the end of each file -have you upgraded bash recently? Syntax Error Unexpected End Of File Shell Script Find More Posts by Keith Hedger 12-22-2010, 08:29 AM #11 xri Member Registered: Aug 2002 Distribution: Slackware 14.1, Archlinux Posts: 279 Blog Entries: 11 Original Poster Rep: Sorry for

Yes, it appears to (but the inner quotes are all stripped from the alias: Code: bash-4.1$ alias me='echo 'rig' && uname -n && echo 'ME' && whoami && echo 'LOCATION' && Syntax Error Unexpected End Of File Bash That prompt gives you a smiley face if your last command worked or a frowny face if it failed. Foo 2. Least Common Multiple Verbs of buttons on websites Are there any 'smart' ejection seats?

share|improve this answer answered Aug 13 '12 at 8:03 bitmask 13.7k644103 add a comment| up vote 0 down vote I had a similar problem, it turned out to be a missing Syntax Error Unexpected End Of File Python Check here for an example of this error that was fixed by editing another file: stackoverflow.com/questions/31211571/… –Nathan Basanese Jul 3 '15 at 18:56 add a comment| 4 Answers 4 active oldest What could cause the throttle to stick in my Ford Ranger? Skeletal formula for carbon with two double bonds Why did companions have such high social standing?

Syntax Error Unexpected End Of File Bash

bash: /home/username/gitaliases/gitaliases.sh: Line 36: Syntax Error: Unexpected end of file. How to handle spending money for extended trip to Europe? Syntax Error Unexpected End Of File Php Reload to refresh your session. Syntax Error Unexpected End Of File Wordpress Tango Icons Tango Desktop Project.

If you need to reset your password, click here. weblink I will upload a .gitattributes file to make sure the script is also correct in the repo. My girlfriend has mentioned disowning her 14 y/o transgender daughter How to indicate you are going straight? When I used gedit to examine the error area, I could go only as far as Line 140. Syntax Error Unexpected End Of File Bash Script

Why? It's possible the OP is doing that and we just don't see that part. –Dennis Williamson Jan 25 '11 at 17:53 It does need to be automated, indeed. Please execute 'dos2unix gitaliases.sh' to make sure line endings are LF only. navigate here They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

xri View Public Profile View LQ Blog View Review Entries View HCL Entries View LQ Wiki Contributions Find More Posts by xri View Blog 12-22-2010, 09:14 AM #15 catkin LQ Syntax Error Unexpected End Of File Unix Blogs Recent Entries Best Entries Best Blogs Blog List Search Blogs Home Forums HCL Reviews Tutorials Articles Register Search Search Forums Advanced Search Search Tags Search LQ Wiki Search Tutorials/Articles Search Why?

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.

unset use_color safe_term match_lhs # Commented out, don't overwrite xterm -T "title" -n "icontitle" by default. # If this is an xterm set the title to [email protected]:dir #case "$TERM" in #xterm*|rxvt*) And you might want to enclose $PATH in double quotes, in case a PATH element contains some special characters (like brackets). –fork0 Aug 13 '12 at 8:11 as @tooboring4me Crontab jobs not executing Bypassing corporate firewall (blocked Node.js port) How to create an SSH tunnel for SSH access on a high port (not port 22) Keeping SSH session alive Public Syntax Error Unexpected End Of File Laravel However, it should probably be more robust, for example checking that it hasn't already been done.

Bye, Michel michel-kraemer closed this Apr 15, 2012 Linutux commented Apr 15, 2012 Thanks. jamesf View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by jamesf 12-19-2010, 03:15 PM #8 xri Member Registered: Aug 2002 Distribution: Slackware Ubuntu Logo, Ubuntu and Canonical Canonical Ltd. his comment is here Join our community today!

You signed in with another tab or window. The last few days have been hectic. Make sure to omit syntax errors. Keith Hedger View Public Profile View LQ Blog View Review Entries View HCL Entries Visit Keith Hedger's homepage!

These Aren't Roasted! Thanks. Unexpected parent process id in output Good way to explain fundamental theorem of arithmetic? asked 5 years ago viewed 1345 times active 9 months ago Related 317Difference between .bashrc and .bash_profile7Unexpected behavior in Bash5Run parts of .bashrc asynchronously2unexpected EOF while looking for matching `''3.bashrc function

GTIN validation I accepted a counter offer and regret it: can I go back and contact the previous company? asked 4 years ago viewed 5898 times active 5 months ago Linked 0 .bashrc error bash: /home/jason/.bashrc: line 115: syntax error: unexpected end of file Related 1608How do I tell if shopt -oq posix; then . /etc/bash_completion fi I would suggest to move all of your aliases in a file named .bash_aliases , it works better . fromdos < .bashrc > newfile source newfile gives me the same error message cat -A .bashrc every single line (including a couple of final empty lines) ends with "$" hexdump -C

Things usually work fine in terminal, but I'm wondering what is going on with this message at the top. more hot questions question feed lang-bsh about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation User contributions on this site are licensed under the Creative Commons Attribution Share Alike 4.0 International License. mRgOBLIN View Public Profile View LQ Blog View Review Entries View HCL Entries Visit mRgOBLIN's homepage!

© Copyright 2017 gatoisland.com. All rights reserved.