LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2005, 11:17 AM   #1
sachitha
Member
 
Registered: Aug 2003
Location: Sri Lanka
Distribution: Redhat 9.0
Posts: 104

Rep: Reputation: 15
Unhappy questions about shell programs


do different shell programs provide different programming languages to write shell scripts ??

are shell programs residing in /bin directory??

information about the shell program assigned to a user can be taken from a 'start up file' , as far as i know.. can such information be taken from a passwd file as well??
does these specific start up files (e.g .profile) affect the user's session??
 
Old 08-21-2005, 01:46 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Shell script is basically a set of commands of that shell. Most people fon't use for or switch in their normal commands, but it's possible. Available commands are different in different shells, so scripts should use the right ones.

Yes, shells (usually) reside in /bin. It doesn't mean that you can't have one in /usr/local/bin. You can. The thing is to modify /etc/shells so your shell is listed.

Shell can use information from every file it has access to. It's working with user's permissions, so it can access all the files the user can. It's started for user, so shell settings affect only that session (if they're not written to the configuration file). Shell is an important part of session, so yes, it affects session.
 
  


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
Start programs from a shell script paraiso Linux - Newbie 4 04-29-2005 09:41 AM
help installing programs from the shell sempuritoza Linux - Newbie 6 01-20-2005 11:58 AM
Running programs with shell Plmajholm Linux - Newbie 4 01-08-2005 05:06 AM
controlling programs from a shell window fred22 Linux - Software 3 07-06-2004 10:12 PM
Will Programs work in shell? Borg Swarm Linux - Newbie 4 01-31-2004 09:07 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:48 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