An alternative to BASH/TCSH?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers An alternative to BASH/TCSH?
# 1  
Old 08-09-2010
An alternative to BASH/TCSH?

Greetings!

I love the power and control offered by BASH but detest its syntax! Is there some alternative *nix shell language? (other than TCSH)

Or maybe a wrapper that affords the use of BASH commands via an easier syntax?

I considered creating a complicated system of aliases to accomplish this, but 1) the aliases would only work on my computer and 2) I'd rather not :P

Anyone know of a pre-build aliases set / shell wrapper / alternative shell / alternative CLI or even better ... some alternative to the CLI altogether that still gives the user the power ad control of BASH without being confusing and irritating to use.

Okay, let's brainstorm...
# 2  
Old 08-09-2010
Hi.

Why don't you start by saying what kind of language you do like, then perhaps we could better recommend an alternative for you.

It might better help us also if you said exactly what it is about "BASH" you find so detestable.

For my 2 cents, you won't find a better scripting language than Bash or Ksh, so good luck here!

From reading your post it's not really clear if you are talking about "BASH" or UNIX in general.
# 3  
Old 08-09-2010
Quote:
Originally Posted by Koalaboration
... some alternative to the CLI altogether that still gives the user the power ad control of BASH without being confusing and irritating to use.
If it had all the power and control of a CLI, why wouldn't it be useful as a CLI too?

Quote:
Okay, let's brainstorm...
What specifically are you looking for in a language? We need a better description than "better"...
# 4  
Old 08-09-2010
Quote:
Originally Posted by scottn
For my 2 cents, you won't find a better scripting language than Bash or Ksh
Python/Perl.

---------- Post updated at 07:05 PM ---------- Previous update was at 06:58 PM ----------

Quote:
Originally Posted by Koalaboration
I love the power and control offered by BASH but detest its syntax! .
Python
# 5  
Old 08-09-2010
Ah yes, I see some clarification is needed.

The BEST programming/script/anything language is:

1) Simple (i.e. only as complicated as absolutely necessary) (python is simple)

2) Intuitive; not necessarily easy to learn. (i.e. implemented logically, syntactically logical, semantically logical) (C is extremely syntactically logical, although semantically it can be a little cryptic)

3) As good as BASH or TCSH (functionally speaking)

I've coded in python and C and enjoy both.

BASH, while ubiquitous, powerful, and useful, is:

1) Unnecessarily complicated. Its like the English language. We think it simple, because we've learned it by rote, but anyone with an objective opinion (and therefore more valuable scientifically speaking) (i.e. a native non-English speaker) will tell you it makes little sense. Imagine how much faster infants would learn to speak if we used a language that was actually designed to be easy to learn ...

2) BASH's cryptic syntax make it look cool, but also make it esoteric, which is a terrible quality for any language to have, as it directly contradicts it purpose.

The PERFECT language would simple require to user to tell the computer what to do, and it would do it. Simple as that. However, BASH is an inadequate stopgap (it's not a good enough alternative in the meantime) Python is much closer, but it's a bit of a pain to write shell scripts in python.

Sometimes I wonder if shell scripts are even necessary, but they so often prove their use, that this though rarely lingers :P

To be honest, I was REALLY hoping someone would say:

"Hey, yeah, why don't you try TPSH (The Perfect Shell) ? Syntactically it's like python, but is semantically implemented via LISP and has features of both. The core functions basically form a wrapper for BASH while the rest incorporate other features like OOP and AOP and more!"

But that event is looking less and less likely ... so I might have to advance beyond basic BASH in exchange for my soul.
# 6  
Old 08-09-2010
Quote:
Originally Posted by Koalaboration
Python is much closer, but it's a bit of a pain to write shell scripts in python
You write Python scripts, not shell scripts.
# 7  
Old 08-09-2010
True.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash tcsh Script runs in terminal but not folder

So, I made a script beginning with #!/bin/bash on gedit. And I double clicked it to run in terminal and I end up with "The child process exited normally with status 127" and "command not found". If I run the same script from the terminal as "tcsh (script name)" it runs just fine. If I... (8 Replies)
Discussion started by: OntorEska
8 Replies

2. Shell Programming and Scripting

Tcsh to sh

Dear all, I have piece of command from tcsh, which I would like to be in my .bashrc file. However, I am comletely blank about the tcsh commandline. if (-e ~/forum/dir/code.sh) then source ~/forum/dir/code.sh endif Any piece of suggestions how to convert it to sh way? Thank you emily (5 Replies)
Discussion started by: emily
5 Replies

3. Shell Programming and Scripting

tcsh help

Does anyone no way my .tcsh_history file is filling up with a bunch of crap?? It is filled with lines like: ! ls eccracrascratcd ! ls mecd /hchoo "cratch2/mecd /sch2/mecd /sh2/mecd /scratchcd /scratch2/mecd /scratcraecd /ls mo "ls" > ! ls eccratch2/mecd /sc/ls"d /scratch2/mecd histecho "ls" o... (2 Replies)
Discussion started by: Bic121
2 Replies

4. Shell Programming and Scripting

Bash can't find file but tcsh can why?

I have a short script for compiling an old program. It's a simple text file 'ccprog' created in emacs. The permissions were changed with 'chmod 775 ccprog' to make it an executable. When I try to run ccprog I get "bash: ./ccprog: No such file or directory". If I change to tcsh ccprog runs. Why... (68 Replies)
Discussion started by: muddauber
68 Replies

5. Shell Programming and Scripting

for / foreach syntax issues (in bash or tcsh)

So I am new to unix, and actually anything outside drag and drop with the mouse (been learning for about a week so far) . I have been using the foreach command in tcsh because I am working on a group of files. Basically what I need is to insert part of the filename as the first line in the file.... (0 Replies)
Discussion started by: thepolypore
0 Replies

6. Shell Programming and Scripting

Decimals in TCSH

Hello, I want to run a loop with non-integer values (which I know I can't) so I've created a loop of integers and divided it by 10. However, these values are always rounded down to 1 significant figure. How do I get the script to keep and use the decimal value? My script is as follows #... (1 Reply)
Discussion started by: DFr0st
1 Replies

7. UNIX for Dummies Questions & Answers

$ in sed under tcsh vs bash

In bash, I can match the ' character in a substition involving the line ending symbol $, easily. In tcsh I ran into a problem. Code: sed "s/$/'/g" filename sed "s/$/'/g" < filename sed -e "s/$/'/g" filename Unmatched '. Where can I find out why this is the case? (2 Replies)
Discussion started by: uiop44
2 Replies

8. UNIX for Dummies Questions & Answers

help in tcsh

am working in tcsh while writing a script, what is diff between foll two starting line #!/bin/csh #!/bin/csh -f Also can I use the same line for script in tcsh or I have to necessarily use #!/bin/tcsh I guess even #!/bin/sh will also do. Kindly clarify (3 Replies)
Discussion started by: mahendrakamath
3 Replies

9. Shell Programming and Scripting

Help me with this tcsh script.!!!!

I need to write a tcsh script which would compare files in the two folders and then send me a mail saying which of the files are missing.For eg 1) I have this folder1 containing all the files which must land on folder2 on a daily basis. 2) If a file is present in folder1 but not in... (6 Replies)
Discussion started by: kumarsaravana_s
6 Replies

10. Shell Programming and Scripting

tcsh

I'm working on OpenOffice Localization; In that I need to work most of in 'tcsh' Since I have almost work till now in 'bash', I want to explore 'tcsh' much more .. An body suggest me a way ? books ? Thanks, :) (1 Reply)
Discussion started by: kartik
1 Replies
Login or Register to Ask a Question