bash或KornShell(KSH)? [英] Bash or KornShell (ksh)?

查看:101
本文介绍了bash或KornShell(KSH)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是不是新来的* nix,但最近我一直在提示花费了大量的时间。我的问题是什么是使用KornShell(KSH)或bash shell中的优势是什么?在哪里使用一个比其他的陷阱?

I am not new to *nix, however lately I have been spending a lot of time at the prompt. My question is what are the advantages of using KornShell (ksh) or Bash Shell? Where are the pitfalls of using one over the other?

展望从用户的角度去理解,而不是纯粹的脚本。

Looking to understand from the perspective of a user, rather than purely scripting.

推荐答案

猛砸。

各种UNIX和Linux实现了ksh各种不同的源代码级别的实现,其中一些是真正的ksh,其中有些是pdksh程序实现,并且其中一些都只是符号连接,有一个ksh的个性一些其他的壳。这会导致在执行行为怪异的差异。

The various UNIX and Linux implementations have various different source level implementations of ksh, some of which are real ksh, some of which are pdksh implementations and some of which are just symlinks to some other shell that has a "ksh" personality. This can lead to weird differences in execution behavior.

至少在bash你可以肯定,这是一个单一的code碱基,和所有你需要担心的是bash的(通常是最小的)版本安装的是什么。已经做了很多的脚本在pretty多每一个现代(和不那么现代)UNIX,编程是bash更可靠地在我的经验是一致的。

At least with bash you can be sure that it's a single code base, and all you need worry about is what (usually minimum) version of bash is installed. Having done a lot of scripting on pretty much every modern (and not-so-modern) UNIX, programming to bash is more reliably consistent in my experience.

这篇关于bash或KornShell(KSH)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆