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

Bashrc Line Syntax Error Unexpected End Of File


Another thing you might try is having a an empty newline at the end of each file -have you upgraded bash recently? GTIN validation I accepted a counter offer and regret it: can I go back and contact the previous company? I have not upgraded bash recently. If you need to reset your password, click here. this contact form

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 The original .bashrc is located in /etc/skel/. I made a backup of the faulty one (in order to have an idea of what my setup was) and then copied the original fine (cp /etc/skel/.bashrc ~) and added the Thank you very much, I shall now slink back under my rock and proceed to pound my head against it till the next time I have a perverse desire to look

Syntax Error Unexpected End Of File Php

Why don't most major game engines use gifs for animated textures? 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 Already have an account? If you'd like to contribute content, let us know.

Try to use the external file # first to take advantage of user additions. What could cause the throttle to stick in my Ford Ranger? 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. Syntax Error Unexpected End Of File Shell Script Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd.

What are the holes on the sides of a computer case frame for? Bar to add a line break simply add two spaces to where you would like the new line to be. 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. Join our community today!

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 Syntax Error Unexpected End Of File Python Then it is quite obvious that you meant [ -z "$PS1" ] && return or if [ -z "$PS1" ]; then return fi share|improve this answer edited Feb 29 at 11:45 For details and our forum data attribution, retention and privacy policy, see here UbuntuCommunityAsk!DeveloperDesignDiscourseHardwareInsightsJujuShopMore ›AppsHelpForumLaunchpadMAASCanonical current community chat Ask Ubuntu Ask Ubuntu Meta your communities Sign up or log in to Join Date Oct 2007 Beans 172 DistroUbuntu 14.04 Trusty Tahr Re: Terminal error bashrc syntax error unexpected end of file Sorry guys, I was out of commission for a while...

Syntax Error Unexpected End Of File Bash

I see nothing of use other than at the end ./.bashrc: line 124: syntax error: unexpected end of file. Problem with using pause and onslide in one frame Natural construction In a GNU C macro envSet(name), what does (void) "" name mean? Syntax Error Unexpected End Of File Php That prompt gives you a smiley face if your last command worked or a frowny face if it failed. Syntax Error Unexpected End Of File Wordpress 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

Will the medium be able to last 100 years? weblink shopt -oq posix; then 143 . /etc/bash_completion 144 fi actionparsnip (andrew-woodhead666) said on 2013-09-06: #3 looks ok. If I uncomment either one, then I get the same error message shown on the initial post. I checked them all, inside vim, which highlights the code, and I did not find anything unusual. Syntax Error Unexpected End Of File Bash Script

Subtraction with a negative result Why did companions have such high social standing? Keith Hedger View Public Profile View LQ Blog View Review Entries View HCL Entries Visit Keith Hedger's homepage! Things usually work fine in terminal, but I'm wondering what is going on with this message at the top. navigate here vBulletin ©2000 - 2016, Jelsoft Enterprises Ltd.

I don't know what to look at.Could somebody give me a hint? Syntax Error Unexpected End Of File Unix Skipping directly to level 4 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 That would be a good start.

Tango Icons © Tango Desktop Project.

cat >> .bashrc << EOF h () { history | fgrep \$1 | sort -u | cut -b 8- ; } extract () { if [ -f \$1 ] ; then 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 rg3 View Public Profile View LQ Blog View Review Entries View HCL Entries Visit rg3's homepage! Syntax Error Unexpected End Of File Laravel basic HTML tags are also supported learn more about Markdown Question tags: ssh ×95 .bashrc ×1 .bash_profile ×1 question asked: 18 Oct '15, 09:35 question was seen: 788 times last updated:

Are they incorrect? Join them; it only takes a minute: Sign up .bashrc syntax error: unexpected end of file up vote 1 down vote favorite 1 I am getting an unexpected end of file I will upload a .gitattributes file to make sure the script is also correct in the repo. his comment is here safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM match_lhs="" [[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)" [[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(/dev/null \ && match_lhs=$(dircolors --print-database)

These Aren't Roasted! Are you new to LinuxQuestions.org? Be done now! 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

You signed out in another tab or window. Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Could not load ruby textmate." Last edited by Luxx; January 6th, 2015 at 07:53 AM. By the way, I'm uploading a snapshot of all my installed programs, and when they were installed.

However, it should probably be more robust, for example checking that it hasn't already been done. How to book a flight if my passport doesn't state my gender? Browse other questions tagged linux bash or ask your own question. Thanks.

Browse other questions tagged bash syntax .