features of a new SHELL


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting features of a new SHELL
# 1  
Old 12-31-2008
Lightbulb features of a new SHELL

Hello,
My team and I planing to create a new shell. We are including features like handing the "command not found" exception, etc....

1)Can you please give some suggestions on what do do while writing a new shell.....

2)can you please give me your problems with the existing shells..My platform is RED HAT 9 and FEDORA 8.

please list them out in points so that we can understand better......Smilie

Last edited by otheus; 01-06-2009 at 07:27 PM.. Reason: changed post icon
# 2  
Old 01-05-2009
First, a good shell should be cross-platform, so making this a Linux-specific question is a bad idea. Would you like me to move the post to another forum?

Second, it should be backwards-compatible with classic sh. It should also be POSIX compatible, but have extensions that remove POSIX stupidities.

Third, it should be better about quoting and handling spaces. Maybe it could be more perl- or php-like in this regard. Syntax for handling regexps would also be nice. A shell that can also be used as an ad-hoc web form language would be nice. (It doesn't need to replace PHP, only borrow basic ideas from it).

Third, what do you mean "handling" the "command not found" exception? Do you want to simply remove the PATH limitation so that if a program isn't in your PATH, the shell will find it anyway? Might be a good way to sneak in trojans! Maybe the shell could suggest alternative programs from a list of paths in the update/location database? Or it could use mod apache's speling.o module to find command-line typos?

Finally, have you looked into creating a zsh module? It already does many of these. I've read that zsh is remarkably modular and can be used to extend new features. I don't use it simply because I know bash pretty well and don't see a reason to change. If I were to start anew, I'd use zsh.
# 3  
Old 01-06-2009
Bug POSIX doubts

hello,
thanks a lot for your reply.It was very informative.I shall surely take your words and do the best that I can.
Can you please forward this post in other forums.You said you will do it.Can you send me the link.I shall go and keep seeing there.

I wanted to know the POSIX stupidities that you were saying.What are the problems we generally face with "POSIX" Smilie
# 4  
Old 01-06-2009
Error

Note -- I'm sticking this thread for a month to let people comment. If other board moderators/admins override, that's fine. I think it's useful to as many people in the community to let people comment on this one.
# 5  
Old 01-07-2009
I don't think that another shell is a good idea. I believe that the strength of the UNIX os is among other things its simplicity. After almost 30 years there is a dozen of shells and this is no good for anybody. Of course some new shells, e.g. bash are better than the older ones but you must have something very important to offer with another new shell. Thanks for hearing my opinion.
# 6  
Old 01-10-2009
Quote:
Originally Posted by Panos1962
I don't think that another shell is a good idea. I believe that the strength of the UNIX os is among other things its simplicity. After almost 30 years there is a dozen of shells and this is no good for anybody.
Dozens of shells have come and gone on UNIX and GNU/Linux over the years. Nothing wrong with producing a new shell. If it is exceptional, users will flock to it. If it is mundane, users will ignore it.

Some ideas. Make it object orientated. Look at what Dave Korn is doing with ksh93 and compound variables and types. Not quite there yet but heading in the right direction. Add methods to variables similar to what is called discipline functions in ksh93 but cleanly implemented. Look at Ruby for ideas in this area. Make it modular ALA zsh. Include auditing. Maybe profiling like on Solaris. Include native threads for job control and concurrency. Include extended regular expressions. Include date and time manipulation ALA ksh93 printf %T but using a different syntax.
# 7  
Old 01-10-2009
Bug My work

Hello sir,
I am very happy to see the optimistic note of the posts above.I have finished handling the "command not found" exception. I am currently working on "help me linux".
Here my target is the linux newbie who know nothing abt commands.He can enter his doubts like = "how to list a file?" And my perl code will tell him about "ls". I also want to handle queries like "how to lst a file?".Here the spelling is wrong, even then I am working with commands like aspell,hunspell to do the job for me.

I also have ideas like encrypting files,derectories with gpg so that even if one could get root password, he cannot open it, searching in LAN using openSSH. Can you please tell me where I stand now.I dont know whether I am going in the right direction or not !!!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Ubuntu

useradd - shell missing features after adding user

Hi, I need to create a user from a bash script so i have to use useradd. The problem is that when i create a user with: useradd -d /home/sample -m sample after i login with that user I have no history in bash, path do not appears, i can't use arrows and so on. When I use adduser everything is... (5 Replies)
Discussion started by: ktm
5 Replies

2. Programming

Unix shell with history features like in bash

hii to all i am developing a simple unix shell in c i want to add history feature in that how could i do that plz help if there is any tutorial or website plz put it here history feature should be like that in bash, when press up key show the previous command typed in console plz be... (1 Reply)
Discussion started by: vipin_jss
1 Replies

3. UNIX for Dummies Questions & Answers

Features explanation???

HI Can anybody explain following UNIX features? Removable file system Dynamic file space allocation Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

4. UNIX for Dummies Questions & Answers

Shell features ???

Hi Can anybody explain the following shell features with example a) Command line editing b) filename completion c) job control (1 Reply)
Discussion started by: skyineyes
1 Replies

5. Windows & DOS: Issues & Discussions

Evaluate uUNIX and MSDOS shell script features

I need to select the main features of shell scripting on UNIX and evaluate their MSDOS equivalent. can anyone suggest some online resources articles anything?? Thanks in advance (0 Replies)
Discussion started by: deemon111
0 Replies

6. AIX

AIX OS Features versus Solaris OS Features

Hi Unix Experts, I like to compile and compare all the features that AIX OS (541L) and Solaris OS (Solaris 10) provide. If somebody can shed on this topic would be highly appreciated. Thank you, Khan (0 Replies)
Discussion started by: hkhan12
0 Replies

7. UNIX for Advanced & Expert Users

Help with Additional Password Features

Hello: I have a customer who is requesting the following security features on a Solaris 8 system: 1. Password history for the three previous passwords. 2. User account lockout after 3 failed login attempts. Can anyone help provide me with a solution or direction for the above? (1 Reply)
Discussion started by: rambo15
1 Replies

8. Post Here to Contact Site Administrators and Moderators

V2.2.0 new features?

Neo, can you tell us about some of the new features since the upgrade, or are they mostly "behind the scenes"? (1 Reply)
Discussion started by: PxT
1 Replies
Login or Register to Ask a Question

Featured Tech Videos