LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-13-2008, 08:15 AM   #1
snorris
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
Research on bash shell


I am researching bash for a block of training. The issue I have is in regard to the difference in content when comparing the env (external) command results with the declare (built-in) command. declare contains a number of functions which are not a part of env.

My question is: where do those functions originate?

Are they embedded in the bash command, itself, or is there a configuration file where they are stored between sessions?

I realize that this may seem to be a waste of a line of inquiry, and apologize in advance - I just don't like not being able to understand things.

Best regards,

Sam Norris
 
Old 06-13-2008, 08:37 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
man declare
---shows that "declare" is a BASH built-in
man bash
---gives you the syntax for the declare command
man env
---shows that env is an external command and gives you the syntax.

If I enter "env", I get a list of environmental variables, not functions. "declare" seems to do the same thing, but the man page also talks about functions.

I suggest that you get a copy of the Advanced Bash Scripting Guide and see what that says. http://tldp.org
 
  


Reply

Tags
bash



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
copy directories and files recursively using C shell or bash shell bostonuser Programming 7 06-06-2008 01:24 AM
own shell in place of bash shell somu_thedev Programming 6 07-31-2007 10:13 AM
Run a C Shell using only Bash shell HSN Linux - Software 1 12-25-2006 07:44 AM
Bash shell triplem Linux - Software 1 04-14-2003 08:01 AM
Help!!!!! Bash Shell???? DarkHorse Linux - Newbie 7 06-04-2001 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:50 PM.

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
Open Source Consulting | Domain Registration