Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-19-2006, 07:01 PM   #1
LQ Newbie
Registered: Jun 2005
Location: sydney
Distribution: Fedora Core 7
Posts: 17

Rep: Reputation: 0
hacking BASH source code

This is a newbie programming question,
I have an assignment for uni where we were given the source code, Makefile etc.. for bash 3.1 and were assigned to do the following

Make bash change the $PATH variable to (somthing) when entering in a certain directory, then change back to the original $PATH value when leaving that directory.

I assumed that this should be done by hacking the source file for BASH. I've serched the web and looked at the man pages and all it tells me is how bash works but no description on what the source files do.

can someone give me some pointers on how I should go about it


Last edited by assyrian1; 04-19-2006 at 07:07 PM.
Old 04-19-2006, 07:36 PM   #2
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Surely you've covered some of this if you're being asked to do it at Uni... Look through the source files and see if any jump out. 'cd' is a shell command so there would be code somewhere that handles it's execution, look for that and go from there.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 12:48 PM
Hacking Exposed Wireless Hacking Chapter prompt Linux - Wireless Networking 0 05-08-2004 02:44 PM
Doubt with a bash code linuxlover1234 Programming 10 03-30-2004 12:48 PM
where is the bash source code?... gearoid Programming 5 11-25-2003 04:24 AM
Bug in c code calling bash code Linh Programming 11 08-12-2003 04:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration