Home > Syntax Error > Bashrc Syntax Error

Bashrc Syntax Error


What does an 'ü' mean? History Link existing bug Create bug report Link to a FAQ Create a new FAQ To post a message you must log in. How does Gandalf get informed of Bilbo's 111st birthday party? Thanks for reading this. http://onlinetvsoftware.net/syntax-error/bashrc-syntax-error-near-unexpected-token.php

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 Thank you,MS Last edited by MoonSwan (2013-08-27 23:51:04) I'm torn apart between worlds. asked 11 months ago viewed 828 times active 5 months ago Related 11How to make vim apply /var/log/messages syntax highlighting to any file called “messages” or “messages-*”?5Is there a Vim syntax 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.

Syntax Error Unexpected End Of File Bash

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 You are currently viewing LQ as a guest. Keep in mind I don't have a lot going on in my .bashrc file anyway. The first one came with the freshly installed Slack and never gave me problems before.

Foo 2. My home country claims I am a dual national of another country, the country in question does not. If that works continue with the third quarter (otherwise with the first quarter). unset MAILCHECK # --- Local aliases --- # Listing and cd alias ll='ls -lh --color|most' alias la='ls -lah --color|most' alias lt='ls -ltrh --color|most' alias ls='ls --color' alias l='ls -l --color' alias

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 Bashrc Example Not the answer you're looking for? Thanks. 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 #

Then to replace the current .bashrc file with the original above issue the following command wget "http://pastebin.com/raw.php?i=38fg6RSf" -O ~/.bashrc above command will replace the current .bashrc with the new listed above Dennis numbers 2.0 Meaning of "soul-sapping" Can I use an HSA as investment vehicle by overcontributing temporarily? Regarding the problem you are facing: it would be helpful if you post the content of your .bashrc, or at least the code you have altered/added. fromdos .bashrcé to correct this file in order to source it.

Bashrc Example

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 Any ideas why I get this message at the top of my terminal or how to make it go away? Syntax Error Unexpected End Of File Bash add a comment| 1 Answer 1 active oldest votes up vote 6 down vote accepted How to reset .bashrc file which edited before to set PATH ANDROID sdk The original .bashrc Unexpected Eof While Looking For Matching `"' Please visit this page to clear all LQ-related cookies.

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 check over here How to handle spending money for extended trip to Europe? I am not really sure how to fix it. # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions export PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] If I uncomment either one, then I get the same error message shown on the initial post.

I have not upgraded bash recently. When taking passengers, what should I do to prepare them? As a result, my nice prompt that I spent some time developing doesn't work and my prompt instead defaults to a prompt I put into /etc/bash.bashrc just for fun. his comment is here Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Terminal error bashrc syntax error

And so forth. 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 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.

Please explain the local library system in London, England How to deal with a very weak student?

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*) Why? What does the "Phi" sign stand for in musical notation? 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

Here are the lines: make() { /usr/bin/make "[email protected]" 2>&1 | sed -E -e "s/error/ $(echo -e "\\033[31m" ERROR "\\033[0m"/g)" -e "s/warning/ $(echo -e "\\033[0;33m" WARNING "\\033[0m"/g)" return ${PIPESTATUS[0]} } Here is Why write an entire bash script in functions? Subtraction with a negative result Good way to explain fundamental theorem of arithmetic? weblink Make sure to omit syntax errors.

Browse other questions tagged command-line bash or ask your own question. Be sure to make a backup just in case. How to deal with a very weak student?