Advertisement
Guest User

zzzzz

a guest
Jul 2nd, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. [center][size=200]Battle of the shells[/size][/center]
  2. [hr][/hr]
  3. This is a thread about shells - the ways you can interact with your computer, via text. Windows calls explorer.exe a 'shell', but Windows terminology is pompous and weird, so it doesn't count. :P
  4.  
  5. This is a debate thread to see which shell is the best. If you know a shell that's not represented in this thread, please suggest it to be added.
  6.  
  7. [size=150]dash (sh)[/size]
  8.  
  9. The original bourne shell - but faster. It's really light, which is why it's included in busybox, a lightweight package of unix utilities. It has the exact same features as the original bourne shell, though.
  10.  
  11. [list]
  12. [*] I/O redirection and piping, which allows you to "hook up" the output of one program to a file, or to another program. There are even programs that can automatically paste the output of a program to pastebin or ix.io for you!
  13. [*] For loops, if statements, and cases, with syntax largely taken from ALGOL.
  14. [*] Substitute static text with the result of a command with backticks.
  15. [*] Dynamically typed variables, and environment variables that can be exported and saved to be used by the entire system.[/list]
  16.  
  17. [size=150]bash[/size]
  18.  
  19. The bourne-again shell. It's a pun on "born again", and it was descended from the bourne shell. But, it has way more features.
  20.  
  21. [list]
  22. [*] It has everything the bourne shell has.
  23. [*] Compatibility - bash is compatible with the bourne shell, which is now reimplemented as dash on most systems. It's also available for lots of systems today - anything unix-like can have bash, and even systems that aren't unix-like, such as Microsoft Windows.
  24. [*] Dotfiles - bash has dotfiles, which can be used on startup. ~/.bashrc is a list of commands to run on startup, while ~/.bash_profile sets environment variables.
  25. [*] Process management - you can run child processes concurrently with the shell, which allows you to have things running in the background. Unix users call them daemons, and MS-DOS users call them memory resident programs.
  26. [/list]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement