Sponsored Content
The Lounge What is on Your Mind? Speculative Shell Feature Brainstorming Post 302509110 by tetsujin on Tuesday 29th of March 2011 11:08:25 PM
Old 03-30-2011
Quote:
Originally Posted by fpmurphy
Actually no, it is not. It is the direction a number of Unix and GNU/Linux shells have been going for quite a while. Think compound variables in ksh93 and prototypical inheritance in JavaScript for starters.
Admittedly my experience in Korn Shell is rather limited. I don't know everything it's capable of. Compound variables are a new one on me. I had been using mksh for most of my Korn shell experimentation, but I guess I've got to stick with ksh 93 if I want the compound vars...

From what I can tell, though, compound vars aren't "objects", rather they're "structures". "objects" would have methods and (most relevant to the whole file descriptor thing) destructors.

I had never heard of Javascript being used as a shell. The only "Javascript shells" I've seen are in-browser debugging tools. (Quite helpful! But not shells for the Unix environment.) Are you talking strictly about it being used to interact with Javascript code that's running, or interactively to run other programs on the system as well?

Quote:
You do not appear to have done a survey of the internals of modern Unix/Linux shells. I would recommend that you closely examine the internals of such shells and not just the Bash shell which is rather archaic (sorry Chet!) in many respects.
Suggestions, then? What modern Unix/Linux shell should I have looked at that I (probably) haven't?
 

4 More Discussions You Might Find Interesting

1. SCO

BASH-like feature. is possible ?

Greetings... i was wondering if there is any shell configuration or third party application that enables the command history by pressing keyboard up arrow, like GNU/BASH does or are there an SCO compatible bash versio to download? where ? just wondering (sory my stinky english) (2 Replies)
Discussion started by: nEuRoMaNcEr
2 Replies

2. Shell Programming and Scripting

Creating a command history feature in a simple UNIX shell using C

I'm trying to write a history feature to a very simple UNIX shell that will list the last 10 commands used when control-c is pressed. A user can then run a previous command by typing r x, where x is the first letter of the command. I'm having quite a bit of trouble figuring out what I need to do, I... (2 Replies)
Discussion started by: -=Cn=-
2 Replies

3. UNIX for Dummies Questions & Answers

brainstorming automated response

I am managing a database of files for which there is a drop-box and multiple users. what i would like to do is set a criteria for files coming into the drop-box based on file structure. (they must be like this W*/image/W*-1234/0-999.tif) If the files do not match the criteria i want them to be... (1 Reply)
Discussion started by: Movomito
1 Replies

4. UNIX for Beginners Questions & Answers

Can we create any check-point feature in shell ?

I have a script as below and say its failed @ function fs_ck {} then it should exit and next time i execute it it should start from fs_ck {} only Please advise #!/bin/bash logging {} fs_ck {} bkp {} dply {} ## main function### echo Sstarting script echo '####' logging fs_ck... (3 Replies)
Discussion started by: abhaydas
3 Replies
CHSH(1) 							   User Commands							   CHSH(1)

NAME
chsh - change your login shell SYNOPSIS
chsh [-s shell] [-l] [-u] [-v] [username] DESCRIPTION
chsh is used to change your login shell. If a shell is not given on the command line, chsh prompts for one. chsh is used to change local entries only. Use ypchsh, lchsh or any other implementation for non-local entries. OPTIONS
-s, --shell shell Specify your login shell. -l, --list-shells Print the list of shells listed in /etc/shells and exit. -u, --help Print a usage message and exit. -v, --version Print version information and exit. VALID SHELLS
chsh will accept the full pathname of any executable file on the system. However, it will issue a warning if the shell is not listed in the /etc/shells file. On the other hand, it can also be configured such that it will only accept shells listed in this file, unless you are root. EXIT STATUS
Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid. SEE ALSO
login(1), passwd(5), shells(5) AUTHOR
Salvatore Valente <svalente@mit.edu> AVAILABILITY
The chsh command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux July 2009 CHSH(1)
All times are GMT -4. The time now is 05:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy