Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A better Linux shell? [closed]

I use bash, and have done so for over a decade - but occasionally I wonder whether there has been any significant new developments in the world of Linux shells.

A few years back Microsoft released PowerShell, which seemed very interesting. Is there any comparable innovation going on in Linux shells?

like image 785
sanity Avatar asked Jun 01 '09 03:06

sanity


People also ask

Which is the most common shell on Linux?

1. Bash Shell. Bash stands for Bourne Again Shell and it is the default shell on many Linux distributions today.

What does an & after a command do?

The & symbol instructs commands to run in a background process and immediately returns to the command line for additional commands.


1 Answers

You do realize bash 4 has very recently been released with a load of new features and language additions?

  • Shell options globstar (**/foo) does a recursive search, dirspell fixes typos during pathname expansion.
  • Associative arrays, map strings to strings, instead of just numbers to strings.
  • The autocd shell option allows changing directories by just typing the directory path instead of having to put cd in front.
  • Coprocesses
  • &>> and |& redirection operators that redirect both stdout and stderr
  • Loads of additions to existing builtins for improved scripting convenience.

Check out:

  • The "official" changelog: http://tiswww.case.edu/php/chet/bash/CHANGES
  • A short guide to some of the new features: http://bash-hackers.org/wiki/doku.php/bash4
like image 78
lhunath Avatar answered Oct 06 '22 15:10

lhunath