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

Bashrc Line 13 Syntax Error Unexpected End Of File

Contents

Also, you need to put backslashes before each bracket surrounding your escape codes in PS1. Problem? How rich can one single time travelling person actually become? If that works continue with the third quarter (otherwise with the first quarter). navigate here

Use -le for less than or equal. –Stéphane Chazelas Jul 28 at 7:33 add a comment| 2 Answers 2 active oldest votes up vote 8 down vote You missed a fi Should anyone wish to use it, here it is: PS1="$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;32m\]\[email protected]\h'; fi)\[\033[01;34m\] \w \$([[ \$? != 0 ]] && echo \"\[\033[01;31m\]:(\[\033[01;34m\] shopt -oq posix; then 143 . /etc/bash_completion 144 fi actionparsnip (andrew-woodhead666) said on 2013-09-06: #3 looks ok. Keith Hedger View Public Profile View LQ Blog View Review Entries View HCL Entries Visit Keith Hedger's homepage!

Syntax Error Unexpected End Of File Php

Arch + dwm • Mercurial repos • GithubRegistered Linux User #482438 Offline #3 2013-08-27 22:59:34 cfr Member From: Cymru Registered: 2011-11-27 Posts: 5,675 Re: [Solved] Sourcing .bashrc gets "syntax error: unexpected Sorry, I could not paste the content here ('too many characters'). 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 I'm torn apart between worlds.

  • Skeletal formula for carbon with two double bonds Is this safe to display MySQL query error in webpage if something went wrong?
  • h () { history | fgrep $1 | sort -u | cut -b 8- } Change it to this: h () { history | fgrep $1 | sort -u | cut
  • Thanks for the input, all of you.The line actually works as it is (I always use it, and I'm using it right now).
  • gnashley View Public Profile View LQ Blog View Review Entries View HCL Entries Visit gnashley's homepage!
  • 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
  • Now I know my ABCs, won't you come and golf with me?

share|improve this answer answered Aug 1 '13 at 12:33 tooboring4me 1 Can you provide some more detailed information, coz only a few would understand this... –NREZ Aug 1 '13 Unix & Linux Stack Exchange works best with JavaScript enabled current community blog chat Super User Meta Super User your communities Sign up or log in to customize your list. Force Microsoft Word to NEVER auto-capitalize the name of my company Do COB LEDs usually need electrically insulating from the heatsink? Syntax Error Unexpected End Of File Shell Script Feb 5 at 0:04 A couple of things.

Using Map to convert Feet + Inches to Inches in a List of Lists When was this language released? Syntax Error Unexpected End Of File Bash You will probably have to go through the file line by line to locate the problem. And so forth. My girlfriend has mentioned disowning her 14 y/o transgender daughter Why are some programming languages Turing complete but lack some abilities of other languages?

For me, The only thing in my .bash_profile is ". ~/.bashrc". .bashrc contains PS1 setting, and everything else. Syntax Error Unexpected End Of File Python Password Protected Wifi, page without HTTPS - why the data is send in clear text? Will the medium be able to last 100 years? Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap - Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ

Syntax Error Unexpected End Of File Bash

Results 1 to 4 of 4 Thread: Terminal error bashrc syntax error unexpected end of file Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Meaning of Guns and ghee more hot questions about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture Syntax Error Unexpected End Of File Php Registration is quick, simple and absolutely free. Syntax Error Unexpected End Of File Wordpress Then just do binary search, that is, comment in the first half of the file.

That worked. –Divshah Sep 12 '14 at 4:23 Now I have another issue, it doesn't display the second if part... check over here more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation try Code: cat -An ~/.bashrc | tail -3 to see the last few lines with control characters / line endings Adv Reply March 21st, 2014 #3 Impavidus View Profile View I don't test for PS1, I just set it. Syntax Error Unexpected End Of File Bash Script

However, it should probably be more robust, for example checking that it hasn't already been done. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. his comment is here command are same. –kshji Feb 5 at 17:35 1 [ "$PS1" ] && echo "PS1 value is $PS1" –kshji Feb 5 at 17:44 add a comment| 1 Answer 1 active

Many thanks to you and Andrew. Syntax Error Unexpected End Of File Unix Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. catkin View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by catkin View Blog Page 1 of 2 1 2 > Thread Tools Show

Symbolic comparison of recursive functions Video displays in Star Wars So sayeth the Shepherd How to pluralize "State of the Union" without an additional noun?

I have not touched the files in question with any DOS or Windows tool at all. But you could do \$1 which would be more readable than \044\061. –Dennis Williamson Jan 25 '11 at 17:31 @Dennis Williamson Why not just use nano or some other 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 Syntax Error Unexpected End Of File Laravel When I used gedit to examine the error area, I could go only as far as Line 140.

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 Usually unexpected end of file is an unclosed quote or bracket. the 0a is the correct linux line ending, if its a dos line ending it will be 0d 0a 1 members found this post helpful. http://onlinetvsoftware.net/syntax-error/bin-sh-module-line-1-syntax-error-unexpected-end-of-file.php Having a problem logging in?

By the way, I'm uploading a snapshot of all my installed programs, and when they were installed. share|improve this answer edited Jun 3 at 23:06 answered Jun 29 '13 at 9:38 ortang 1,16469 bash: cp: No such file or directory error!!! –revan Jun 29 '13 at source and . Julianloui Question information Language: English Edit question Status: Solved For: Ubuntu gedit Edit question Assignee: No assignee Edit question Solved by: NickTh  Solved: 2013-09-07 Last query: 2013-09-07 Last reply: 2013-09-06

catkin View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by catkin View Blog 12-22-2010, 09:01 AM #13 xri Member Registered: Aug 2002 The last few days have been hectic. Sep 18 '14 at 8:36 This question has been asked before and already has an answer.