waspsoft.com


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

Bash Bashrc Line Syntax Error Unexpected End Of File

Contents

if [ -f /etc/bash_completion ] && ! 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 What type of sequences are escape sequences starting with "\033]" How to indicate you are going straight? Julianloui Julianloui (julianloui) said on 2013-09-07: #7 Thanks Nik.Th., that solved my question. http://waspsoft.com/syntax-error/bashrc-line-13-syntax-error-unexpected-end-of-file.html

bash: /home/username/gitaliases/gitaliases.sh: Line 36: Syntax Error: Unexpected end of file. 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 It is really great tool to debug such mess: You made a mistake just in the start: if [ -z "$PS1" ] && return # SC1073 Couldn't parse this if expression. What is the sh -c command?

Syntax Error Unexpected End Of File Bash Script

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 However, it should probably be more robust, for example checking that it hasn't already been done. I have not touched the files in question with any DOS or Windows tool at all. Browse other questions tagged bash shell or ask your own question.

  1. Should anyone wish to use it, here it is: PS1="$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;32m\]\u@\h'; fi)\[\033[01;34m\] \w \$([[ \$? != 0 ]] && echo \"\[\033[01;31m\]:(\[\033[01;34m\]
  2. Also, you need to put backslashes before each bracket surrounding your escape codes in PS1.
  3. You are currently viewing LQ as a guest.

Religious supervisor wants to thank god in the acknowledgements no outgoing connection via ipv4 more hot questions question feed lang-bsh about us tour help blog chat data legal privacy policy work Use like so: # sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' # Alias definitions. # You Meaning of Guns and ghee Skipping directly to level 4 My girlfriend has mentioned disowning her 14 y/o transgender daughter How to extrude a face parallel to another? Syntax Error Unexpected End Of File Python I'll appreciate anyone's help.

I haven't made any deliberate changes to it. mRgOBLIN View Public Profile View LQ Blog View Review Entries View HCL Entries Visit mRgOBLIN's homepage! h () { history | fgrep $1 | sort -u | cut -b 8- } Change it to this: h () { history | fgrep $1 | sort -u | cut I don't test for PS1, I just set it.

cat >> .bashrc << EOF h () { history | fgrep \$1 | sort -u | cut -b 8- ; } extract () { if [ -f \$1 ] ; then Syntax Error Unexpected End Of File Unix By the way, I'm uploading a snapshot of all my installed programs, and when they were installed. Foo 2. Not the answer you're looking for?

Syntax Error Unexpected End Of File Php

These Aren't Roasted! Owner michel-kraemer commented Apr 15, 2012 Hi! Syntax Error Unexpected End Of File Bash Script 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 Syntax Error Unexpected End Of File Wordpress Use like so: 127 # sleep 10; alert 128 alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' 129 130 #

if [[ $- != *i* ]] ; then # Shell is non-interactive. weblink How to pluralize "State of the Union" without an additional noun? Be done now! This is puzzling. Syntax Error Unexpected End Of File Shell Script

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 The original .bashrc is located in /etc/skel/. 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:05 AM #14 xri Member navigate here Reload to refresh your session.

How to extrude a face parallel to another? Syntax Error Unexpected End Of File Laravel What should I be looking for? –Matthieu Cartier Jan 25 '11 at 17:12 add a comment| You must log in to answer this question. 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

Try to use the external file # first to take advantage of user additions.

Adv Reply March 20th, 2014 #2 steeldriver View Profile View Forum Posts Private Message Staff Emeritus Join Date Apr 2012 Beans 6,812 Re: Terminal error bashrc syntax error unexpected end Should indoor ripened tomatoes be used for sauce? Be done now! Syntax Error Unexpected End Of File Expecting Function (t_function) How to handle spending money for extended trip to Europe?

Keith Hedger View Public Profile View LQ Blog View Review Entries View HCL Entries Visit Keith Hedger's homepage! What are the canonical white spaces? Browse other questions tagged bash syntax . his comment is here 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

Thanks for reading this. 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 For me, The only thing in my .bash_profile is ". ~/.bashrc". .bashrc contains PS1 setting, and everything else. bash syntax share|improve this question edited Dec 26 '15 at 23:46 Hennes 50.7k775120 asked Jan 25 '11 at 16:56 Matthieu Cartier 3,1741334 add a comment| 2 Answers 2 active oldest votes

Force Microsoft Word to NEVER auto-capitalize the name of my company no outgoing connection via ipv4 Is the empty set homeomorphic to itself? Already have an account?