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 > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shell script query max29583 UNIX for Dummies Questions & Answers 4 08-07-2008 06:09 AM
C Shell Script query bpupdown Shell Programming and Scripting 1 05-13-2008 07:38 PM
Export Query not Working in Shell GEBRAUN Shell Programming and Scripting 1 07-20-2006 03:44 PM
Query regarding alias and setting bash as a default script VENC22 UNIX for Dummies Questions & Answers 1 07-13-2005 09:18 AM
Executing a SQL query from a shell script 98_1LE UNIX for Dummies Questions & Answers 3 03-23-2002 03:29 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-18-2009
roshantraj30 roshantraj30 is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 5
Query on Bash Shell

Hi,

I have a query regarding how the commands are getting displayed to the terminal on the bash shell. Lets say i am typing a command "ls" on the command prompt. Does the bash reads the command until the new line is entered and then processes it or is it like first the bash reads the character 'l' and echoes the command to the terminal then bash reads next character and so on and finally processes the command.

Any clue on which part of code i should probe through to get the above functionality in bash source code.



Thanks and Regards
Roshan
  #2 (permalink)  
Old 06-18-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,864
I think bash uses the readline library to handle shell input. You should reference the GNU readline documentation online.
  #3 (permalink)  
Old 06-22-2009
roshantraj30 roshantraj30 is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 5
Hello @otheus

Thanks for your reply, I am looking into the details which you have provided.

Thanks and Regards
Roshan
Sponsored Links
Reply

Bookmarks

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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