LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
hacking BASH source code


Hi
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

Thanks

Last edited by assyrian1; 04-19-2006 at 08:07 PM.
 
Old 04-19-2006, 08:36 PM   #2
cs-cam
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.
 
  


Reply


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 01:48 PM
Hacking Exposed Wireless Hacking Chapter prompt Linux - Wireless Networking 0 05-08-2004 03:44 PM
Doubt with a bash code linuxlover1234 Programming 10 03-30-2004 01:48 PM
where is the bash source code?... gearoid Programming 5 11-25-2003 05:24 AM
Bug in c code calling bash code Linh Programming 11 08-12-2003 05:27 AM


All times are GMT -5. The time now is 11:16 AM.

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