Skip to main content

Posts

Showing posts from June 15, 2014

What is /bin/dash?

Debian and Ubuntu switched to dash (iirc) because of a couple of things. First of all, Bash has become big over the years. In fact, the /bin/bash binary on my Ubuntu 8.04 system is almost ten times (!) as big as /bin/dash . Now, that does not matter much for day to day shell use, but it does matter in the following situations: Dash is much smaller and thus loads faster, which is a boon for init-scripts. If you have to start a lot of them, loading Dash instead of Bash each time, speeds things up considerably. Because of the smaller size of Dash, Debian and Ubuntu are able to shave off a pretty big chunk of the size of their initrd, leaving more room for other stuff (and again, speeding things up). The downside of using Dash instead of Bash for scripting, is that a lot of people use syntactical niceties only Bash has, the so-called Bashisms . Examples of Bashisms are substrings, like this: echo $SHELL / bin / bash a = 1234567890 echo $ { a } 1234567890

朝鲜战争

朝鲜战争 (1950年6月25日-1953年7月27日签署停战协定)原是 朝鲜半岛 上的 朝鲜 与 韩国 之间的战争,后 美国 、 中国 等分别支持朝韩双方的多个国家不同程度地卷入这场战争。这场战争是 第二次世界大战 之后 冷战 中的一场“热战”。由于参战双方签署的是 停战协定 而非 和平条约 ,因此从国际法上来讲,这场战争尚未结束。 战争以 1950年 6月25日 朝鲜人民军 越过 38度线 突袭韩国为开端,随后 6月28日 朝鲜人民军占领韩国首都 汉城 (今 首尔 ),并将 韩国国军 及少数援韩 美军 击退至 釜山环形防御圈 内。 7月7日 , 联合国安理会 通过 第84号决议 ,派遣 联合国军 支援韩国抵御朝鲜的进攻,联合国军司令由 美国 指派 [20] 。 9月15日 ,联合国军在当时战线的后方 仁川 登陆 ,扭转了战争的局势,迫使朝鲜人民军北撤。 9月28日 ,联合国军重占汉城, 10月9日 越过 三八线 开始进入朝鲜作战。溃败后的 朝鲜人民军 残部有部分留在 韩国 境内的 智异山 等地组织反对联合国军的 游击队 ,一直坚持到1953年朝鲜战争结束后才被剿灭 [21] 。1950年 10月1日 ,朝鲜领导人 金日成 致信毛泽东,向中国提出出兵援助朝鲜的请求。 10月5日 ,中国决定出兵援朝, 10月19日 ,在并未对 美国 正式宣战下,为不给美国对中国 宣战 以口实,迷惑美国与 联合国军 ,派遣 中国人民志愿军 以民间自发组织的 志愿者 的身份、而非 中国政府 派出的 正规军 进入朝鲜参战 [22] ,分别在 第二次战役 和 第三次战役 中占领平壤和汉城,并迫使联合国军撤退至北纬38度线以南。 1951年 2月1日 联合国大会通过第498号决议 [23] ,认定中华人民共和国介入朝鲜是“侵略行为” [24] 。中华人民共和国则发表声明,认定美国操纵联合国大会,干涉朝鲜内政已达到吞并朝鲜的目的。之后联合国军顶住了志愿军的攻击,并发动夏季和秋季攻势,再度重占汉城,战线重新回到三八线。在此之后,尽管双方不断交战,如 1951年 范弗里特 将军在 夏季攻势 中与朝鲜人民军在 喋血岭 、 1952年 与 中国人民志愿军 在 上甘岭战役 中的血战, [25] ,但阵地基本没有大的变动,一直维持在三八线附近。 1951年 7月10日 ,中华人民共和国和朝鲜方面与联