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

Bash Bashrc Line Syntax Error Unexpected End Of File

Contents

Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. How to handle spending money for extended trip to Europe? I'll appreciate anyone's help. navigate here

Registration is quick, simple and absolutely free. Find More Posts by rg3 12-19-2010, 10:59 AM #3 xri Member Registered: Aug 2002 Distribution: Slackware 14.1, Archlinux Posts: 279 Blog Entries: 11 Original Poster Rep: course, sorry Quote: 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*) How to pluralize "State of the Union" without an additional noun?

Syntax Error Unexpected End Of File Bash Script

However, I'm very interested in following on Keith Hedger's idea, although I don't know how to do that at this point. Find More Posts by mRgOBLIN 12-19-2010, 04:54 PM #10 Keith Hedger Senior Member Registered: Jun 2010 Location: Wiltshire, UK Distribution: Linux From Scratch, Slackware64, Partedmagic Posts: 2,223 Rep: You What are the canonical white spaces?

So just run the following command: cp /etc/skel/.bashrc ~ share|improve this answer answered Sep 6 '14 at 19:13 LSDeva 676 add a comment| up vote 1 down vote Such syntax errors 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 I see nothing of use other than at the end ./.bashrc: line 124: syntax error: unexpected end of file. Syntax Error Unexpected End Of File Python If I uncomment either one, then I get the same error message shown on the initial post.

Please visit this page to clear all LQ-related cookies. Syntax Error Unexpected End Of File Php Not the answer you're looking for? Any ideas why I get this message at the top of my terminal or how to make it go away? Quote: f [ -f /etc/bashrc ]; then source /etc/bashrc fi Quote: if [ -f /home/xri/personal/somedata.kdb.lock ]; then rm /home/xri/personal/somedata.kdb.lock fi When I comment out both, then I get no error messages.

Be sure to make a backup just in case. Syntax Error Unexpected End Of File Unix Grant permissions to extra/secondary users. Join Date Oct 2007 Beans 172 DistroUbuntu 14.04 Trusty Tahr Terminal error bashrc syntax error unexpected end of file bash: /home/v/.bashrc: line 129: syntax error: unexpected end of file This shows shopt -s checkwinsize # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar #

Syntax Error Unexpected End Of File Php

return ###Promts & Terminal theme is black on white ## name=dark purple; relative directory=medium purple; prompt=dark purple; font code=light grey PS1='\[\e[0;35m\]\u\[\e[m\]\[\e[0;37m\] \W\[\e[m\]\[\e[0;35m\] \$ \[\e[m\]\[\e[0;37m\]' ## erase duplicate entries in your history I even alphabetized the entries in the above personal alias file for easy future editing. Syntax Error Unexpected End Of File Bash Script Natural construction Using Map to convert Feet + Inches to Inches in a List of Lists Unexpected parent process id in output Force Microsoft Word to NEVER auto-capitalize the name of Syntax Error Unexpected End Of File Wordpress You are currently viewing LQ as a guest.

Check /etc/bashrc –geirha Aug 13 '12 at 7:42 1 ... check over here UNIX is a registered trademark of The Open Group. What are the canonical white spaces? Thanks # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi if [ -f ~/.git-completion.bash ]; then source ~/.git-completion.bash fi PS1='\[\e[0;36m\]\W\[\e[m\]\[\e[1;31m\]\$\[\e[m\]' if [ "$PS1" ]; then Syntax Error Unexpected End Of File Shell Script

  1. share|improve this answer answered Nov 4 '14 at 0:18 Simón 1 add a comment| up vote -1 down vote This .bashrc shall have been edited from windows.
  2. Please execute 'dos2unix gitaliases.sh' to make sure line endings are LF only.
  3. By the way, I'm uploading a snapshot of all my installed programs, and when they were installed.
  4. The time now is 07:26 PM.
  5. 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.
  6. Could not load ruby textmate." Last edited by Luxx; January 6th, 2015 at 07:53 AM.
  7. Find More Posts by gnashley 12-19-2010, 01:11 PM #5 T3slider Senior Member Registered: Jul 2007 Distribution: Slackware64-14.1 Posts: 2,364 Rep: Does that line that gnashley noted actually work?
  8. How to indicate you are going straight?
  9. What type of sequences are escape sequences starting with "\033]" How to indicate you are going straight?

Hope that helps - matt –mtklr Feb 5 at 13:35 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up Things usually work fine in terminal, but I'm wondering what is going on with this message at the top. asked 8 months ago viewed 200 times active 7 months ago Related 5“unexpected end of file” in bash script0Unexpected end of file error when executing script0shell unexpected end of file error0Got his comment is here 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

That would be a good start. Syntax Error Unexpected End Of File Laravel I'll test this in a few minutes (off for dinner now). Be done now!

return ###Prompts & Terminal theme is black on white ## name=dark purple; absolute directory=medium purple; prompt=dark purple; font code=light grey PS1='\[\e[0;35m\]\u\[\e[m\]\[\e[0;37m\] \W\[\e[m\]\[\e[0;35m\] \$ \[\e[m\]\[\e[0;37m\]' ## Identical to previous prompt *BUT* this

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware [SOLVED] source bashrc -> syntax error: unexpected end of file User Name Remember Me? Feb 5 at 0:04 A couple of things. You signed out in another tab or window. Syntax Error Unexpected End Of File Expecting Function (t_function) 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

Browse other questions tagged bash syntax . Bar to add a line break simply add two spaces to where you would like the new line to be. My guess is a missing quote somewhere in your .bashrc file. weblink Use internal bash # globbing instead of external grep binary.

Limit involving exponentials and arctangent without L'Hôpital How would family relationships change if legal system uses collective punishment? 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). 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 What does an 'ü' mean?

Julianloui (1) cat /etc/issue Ubuntu 12.04.2 LTS \n \l (2) cat -n ~/.bashrc' 1 # ~/.bashrc: executed by bash(1) for non-login shells. 2 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) 3 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 fromdos .bashrcé to correct this file in order to source it. Many thanks to you and Andrew.

I do not recall having edited this area. h () { history | fgrep $1 | sort -u | cut -b 8- } Change it to this: h () { history | fgrep $1 | sort -u | cut