mac | OSX und die Shell
In MacOSX ist die Standardshell Bash — leider in der ca. fast schon zwei Jahre alten Version 3.2.48. Das wird jetzt nicht jeden stören, da nicht jeder auf der Kommandozeile arbeitet. Wer aber, wie ich, ab und an ein Shell-Script erstellt, wird vielleicht schon mal mit der »neuesten« Version 4.1 geliebäugelt haben. Hervorzuheben sind
There is a new `autocd' option that, when enabled, causes bash to attempt to `cd' to a directory name that is supplied as the first word of a simple command.There is a new shell option: `globstar'. When enabled, the globbing code treats `**' specially -- it matches all directories (and files within them, when appropriate) recursively.There is a new shell option: `dirspell'. When enabled, the filename completion code performs spelling correction on directory names during completion.Brace expansion now allows zero-padding of expanded numeric values and will add the proper number of zeroes to make sure all values contain the same number of digits.There is a new &>> redirection operator, which appends the standard output and standard error to the named file.The parser now understands `|&' as a synonym for `2>&1 |', which redirects the standard error for a command through a pipe.
Alle neuen Features aufzuzählen würde zu viel Zeit rauben, deswegen sei auf die Liste des Bash-Maintainers verwiesen.
Wie man diese Version in OSX installiert werde ich hier zeigen.





social media