home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3123 < prev    next >
Encoding:
Text File  |  1992-07-25  |  4.5 KB  |  114 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!mcsun!dxcern!dscomsa.desy.de!dscomsa!r02kar
  3. From: r02kar@rec01.desy.de (Karsten Kuenne)
  4. Subject: Re: zsh was Re: tcsh in the future - what should it be like?
  5. In-Reply-To: yeates@rtsg.mot.com's message of 23 Jul 92 18:53:24 GMT
  6. Message-ID: <R02KAR.92Jul24203749@rec01.desy.de>
  7. Sender: news@dscomsf.desy.de (USENET News System)
  8. Nntp-Posting-Host: rec01.desy.de
  9. Organization: Deutsches Elektronen-Synchrotron, Hamburg, Germany.
  10. References: <1992Jul15.022342.5243@news.eng.convex.com> <2A63AC98.4046@noiro.acs.uci.edu>
  11.     <yeates.711917604@beryl17>
  12. Distribution: comp.unix.shell
  13. Date: Fri, 24 Jul 1992 20:37:49 GMT
  14. Lines: 98
  15.  
  16. >>>>> On 23 Jul 92 18:53:24 GMT, yeates@rtsg.mot.com (Tony J Yeates) said:
  17.  
  18.     Tony> I've never used zsh, and haven't heard any rave-reviews ...
  19.     Tony> is this something special or just another free shell?
  20.     Tony> Whats the associated programming language like?  (If
  21.     Tony> its not Bourne Shell, ksh, REXX, perl or csh compatible - forget
  22.     Tony> it, there are too many shell language alternatives already!)
  23.  
  24. For all of you who never tried zsh this is the FEATURES file from
  25. the zsh distribution :
  26.  
  27. very close to ksh/sh grammar, with csh additions
  28. most features of ksh, bash, and tcsh
  29. 75 builtins, 73 options, 144 key bindings
  30. short for loops, ex: for i (*.c) echo $i
  31. select
  32. shell functions
  33. conditional expressions (test builtin, [ ... ], and ksh-style [[ ... ]])
  34. global aliases (may be expanded anywhere on the line)
  35. directory stack access with =num
  36. process substitution (vi =(cmd) edits the output of cmd)
  37. generalized pipes (ls foo >>(cmd1) 2>>(cmd2) pipes stdout to cmd1
  38.   and stderr to cmd2)
  39. arithmetic expressions
  40. advanced globbing:
  41.   ls **/file  searches recursively for "file" in subdirectories
  42.   ls file<20->  matches file20, file30, file100, etc.
  43.   ls *.(c|pro)  matches *.c and *.pro
  44.   ls *(R)  matches only world-readable files
  45.   ls *.c~lex.c  matches all .c files except lex.c
  46. null command shorthands:
  47.   "< file" is same as "more <file"
  48.   "> file" is same as "cat >file"
  49.   ">> file" is same as "cat >>file"
  50. ksh-style coprocesses
  51. automatic file stream teeing (ls >foo >bar puts output in two places)
  52. chpwd() function run every time you change directory (useful for
  53.   updating the status line)
  54. job control
  55. csh-style history
  56. full vi line editing, including "c2w" and "y$" and such things
  57. full emacs line editing
  58. incremental history search
  59. magic-space history
  60. spelling correction
  61. array parameters
  62. $HOSTTYPE, $LINENO, $RANDOM, $SECONDS, $cdpath, $COLUMNS, $fignore,
  63.   $HISTCHARS, $mailpath
  64. with autocd option, typing a directory name by itself is the same as
  65.   typing "cd dirname"
  66. menu completion: pressing TAB repeatedly cycles through the possible matches
  67. incremental path hashing
  68. automatic process time reporting for commands that run over a certain limit
  69. full tcsh-style prompt substitution
  70. utmp login/logout reporting
  71. with histverify option, performing csh-style history expansions causes the
  72.   input line to be brought up for editing instead of being executed
  73. with sunkeyboardhack option, accidently typed trailing ` characters
  74.   are removed from the input line (for those of you with Sun keyboards :-) )
  75. autoloaded functions (loaded from a file when they are first referenced)
  76. "cd old new" replaces "old" with "new" in directory string
  77. generalized argument completion, including:
  78.   - command name completion
  79.   - filename and path completion
  80.   - hostname completion
  81.   - key binding completion
  82.   - option completion
  83.   - variable name completion
  84.   - user-specified keyword completion
  85. prompt on right side of screen
  86. directory stacks
  87. history datestamps and execution time records
  88. command scheduling (like at(1), but in the shell's context)
  89. tty mode freezing
  90. up to 9 startup files (but you only need 1 or 2)
  91. 8-bit clean
  92. which -a cmd lists all occurences of "cmd" in the path
  93.  
  94.  
  95. I personally first tried tcsh on my machine after the Bourne shell,
  96. but after a while I became tired of the csh-like syntax. The next
  97. shell I tried was Bash, the GNU Bourne Again SHell. This is a good
  98. choice for a interactive shell. But some day I saw a zsh source
  99. somewhere. In the beginning I was a little bit sceptic about this new
  100. shell, but now I use zsh every day and I really learned to love some
  101. of the zsh features !
  102.  
  103. The tcsh maintainers will have a hard time if they wanna put all
  104. the features of zsh into the tcsh :-).
  105.  
  106. Karsten Kuenne.
  107.  
  108. --
  109. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  110. Karsten Kuenne, DESY (-R2-), Notkestr. 85, 2000 Hamburg 52, Germany
  111. phone: +49-40-8998-3315
  112. e-mail: <kuenne@desy.de>, <r02kar@rec01.desy.de>,
  113.         <r02kar@dhhdesy3.bitnet>
  114.