[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux_var] zsh: reload history



OK, grazie per la puntualizzazione.

Per chi fosse interessato ho trovato un'interessante FAQ (ftp://ftp.cwru.edu/pub/bash/FAQ) che riporta il seguente commento

 849 C3)  Which new features in ksh-93 are not in bash, and which are?
 850

 851 New things in ksh-93 not in bash-3.2:
 852   associative arrays
 853   floating point arithmetic and variables
 854   math library functions
 855   ${!name[sub]} name of subscript for associative array
 856   `.' is allowed in variable names to create a hierarchical namespace
 857   more extensive compound assignment syntax
 858   discipline functions
 859   `sleep' and `getconf' builtins (bash has loadable versions)
 860   typeset -n and `nameref' variables
 861   KEYBD trap
 862   variables: .sh.edchar, .sh.edmode, .sh.edcol, .sh.edtext, .sh.version,
 863        .sh.name, .sh.subscript, .sh.value, .sh.match, HISTEDIT
 864   backreferences in pattern matching (\N)
 865   `&' operator in pattern lists for matching
 866   print -f (bash uses printf)
 867   `fc' has been renamed to `hist'
 868   `.' can execute shell functions
 869   exit statuses between 0 and 255
 870   FPATH and PATH mixing
 871   getopts -a
 872   -I invocation option
 873   printf %H, %P, %T, %Z modifiers, output base for %d
 874   lexical scoping for local variables in `ksh' functions
 875   no scoping for local variables in `POSIX' functions
 876


 877 New things in ksh-93 present in bash-3.2:
 878   [n]<&word- and [n]>&word- redirections (combination dup and close)
 879         for (( expr1; expr2; expr3 )) ; do list; done - arithmetic for command
 880         ?:, ++, --, `expr1 , expr2' arithmetic operators
 881   expansions: ${!param}, ${param:offset[:len]}, ${param/pat[/str]},
 882         ${!param*}
 883   compound array assignment
 884   the `!' reserved word
 885   loadable builtins -- but ksh uses `builtin' while bash uses `enable'
 886   `command', `builtin', `disown' builtins
 887   new $'...' and $"..." quoting
 888   FIGNORE (but bash uses GLOBIGNORE), HISTCMD
 889   set -o notify/-C
 890   changes to kill builtin
 891   read -A (bash uses read -a)
 892         read -t/-d
 893   trap -p
 894   exec -c/-a
 895   `.' restores the positional parameters when it completes
 896   POSIX.2 `test'
 897   umask -S
 898   unalias -a
 899   command and arithmetic substitution performed on PS1, PS4, and ENV
 900   command name completion
 901   ENV processed only for interactive shells
 902   set -o pipefail
 903   The `+=' assignment operator


Per Elena: Se non e' un grosso disturbo, ma quanto occupano i sorgenti di ksh?

Ciao

Walter

2008/2/13, Lorenzo Lobba <lorenzo.lobba@gmail.com>:
> In ogni caso a me interessa la differenza tra bash/dash e zsh. Da wikipedia
> http://en.wikipedia.org/wiki/Comparison_of_computer_shells sembrano molto
> simili. Quindi posso desumere che Lorenzo usa la zsh solo perche' e' piu'
> leggera e veloce? o c'e' qualcosa d'altro? Forse, molto semplicemente, e'
> dovuto al fatto che gentoo usa ksh come shell di default?


Il 5 marzo abbiamo una mezzora d'amicizia su zsh tenuta da Buccia.
Se cercate sul wiki del linuxvar trovate pure alcuni file di
configurazioni della zsh fatti da Buccia.

Io la uso perché mi trovo meglio. Ha un autocompletamento più furbo, ad esempio.
L'ho vista usare, l'ho provata e mi è piaciuta.

In gentoo la shell di default è bash.


Ciao
Lorenzo


--

Per cancellare l'iscrizione: <talking-unsubscribe at ml.linuxvar.it>
Archivi web e configurazione: http://ml.linuxvar.it/ml/