The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
.
google unix.com



UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
bash shell: 'exec', 'eval', 'source' - looking for help to understand alex_5161 Shell Programming and Scripting 3 07-24-2008 12:42 PM
bash...Not found through where(compiling source file) vasanthan HP-UX 3 06-02-2008 11:17 AM
Help needed in writing awk script for xml source naren_0101bits Shell Programming and Scripting 2 09-24-2007 01:07 AM
Help needed to test CorneliOS open source software on different platforms joskirps UNIX for Advanced & Expert Users 0 06-20-2007 03:39 PM
Bash Source Code bhargava Shell Programming and Scripting 1 11-20-2006 03:45 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-08-2009
SilversleevesX SilversleevesX is offline
Registered User
  
 

Join Date: May 2009
Location: Northeast USA
Posts: 48
Thumbs up Help needed tracing source of bash error

Issue resolved:

The 'culprit file' was .bash_aliases. It had the naughty  (ASCII for the octal string Bash was detecting and returning an error about). I cleaned it up in Pico (see my post to the thread on favorite editors if you want background on why I use Pico/Nano), re-sourced it via .bash_profile, then .bashrc, and everything seems OK. I quit out of my external {yeah, but not really} RXVT and launched it again and the error was gone.

Fingers crossed it stays gone for good.

BZT

Original post text follows.

Quote:
I don't know for sure what I did, but this morning after making a few changes with my title bar and prompt, as soon as I launch my Cygwin RXVT terminal outside of X-Windows, or my urxvt terminal Inside it, I get the following error:

Code:
bash: $'\357\273\277#': command not found
I've seen it on one line, two lines and three. I thought at first it was a UTF-8 with BOM issue, but it doesn't appear to be so. This last launch brought it up after my motd (which I puzzled out has to be "cat"-ed in since there was no other way I could find to show it that worked) and my Quote Of The Day, for which I use the "toy" application fortune to read in from a fortune-cookie file of my own making. To help you visualize this, here's the rest of my startup messages:

Code:
XWindow Server RESURGAM
BASH cygwin in Windows XP SP3
(Amazing, 'ent it?) 
Quote of the day:
Feargail says 'hi.'
I thought this octal-string error may also have been caused by a faulty RXVT, so I ran the setup and re-installed it. Likewise BASH. Just off the top of my head, I'm thinking it may be a corrupt config file that Cygwin's bash is having trouble reading in (parsing) correctly. I've already checked the line endings on everything that rates as a config file and vaguely resembles a bash shell script, and I was able to see and fix a few naughty characters in .bash_profile and .xinitrc. If it is a corrupt startup config file, the question is: which one?

How would I go about finding out which of the files is either bad or refuses to be corrected via editing?

BZT

Last edited by otheus; 05-13-2009 at 10:18 AM.. Reason: Problem Solved (for the moment at least)
Sponsored Links
Closed Thread

Bookmarks

Tags
bash, config file, corruption, cygwin, octal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0