The somewhat apocryphal history of comments in the Bourne shell

(This is the story as I heard it and learned it in the past. It may ormay not be actually accurate, but then a lot of Unix history is passedaround as folklore, and in some ways the folklore is more important andmore influential than the truth.)

In the beginning, in V7, the Bourne shell didn't actually havecomments. Instead, all it had was : , which is not quite a comment (you can see this for yourself in the V7 shmanpage


The difference in the Bourne shell between : and #

I don't know how people learn the Bourne shell these days, but when Ilearned it, I first encountered ' : ' as a vaguely peculiar second wayof writing comments, one used by some old shell scripts that hung aroundour systems. This is true as far as it goes, which is not necessarilyvery far.

The difference between # and : is that # starts a real commentthat runs to the end of the line, while : is a real command thatjust does nothing (this is


除了帽子什麽都可以綠?

「除了帽子什麽都可以綠」,你猜這是一個甚麼活動的主題?相信連中學生也會猜得到,這當然是和環保相關。

我在這裡及在我的專欄都說過很多遍,向客戶也說到快要吐血,如果要搞Blogger Event,千萬最後不要湊夠人數就算,最好先

Continue reading...

連貫不起 – 大雄與綠之巨人傳

會去戲院看《大雄與綠之巨人傳》,是因為覺得《大雄的恐龍2006》好看又感動,也對水田版叮噹很受落,於很想在戲院感受一下。可是看完之後,卻有點失望。

Spoiler alert!

這次的大長篇不是重拍,而是改編自短篇卷33的《再


Please join mimingmart facebook group to show support~

https://www.facebook.com/ericayuen?ref=profile#/group.php?gid=112212934234

Building true ssh opportunistic connection sharing

OpenSSH has decent basic support for opportunistic connection sharing , but most of this is that ssh will look for anexisting master connection before making a new one. It could do betterand enable a true opportunistic connection sharing mode.

There's two problems with ssh's current support for this, one big andone small. First, being the master connection can keep your ssh running when it would otherwise exit. Second, the master connectionexits immediately when there's no active sessions running over it;there'


強隊需要霹靂旋風腿

我那個年代嘅靚仔,相信就算如我呢類唔踢波嘅孱弱書生,都依然會對足球小將著迷,最近看見adidas嘅新廣告,見到「強隊需要霹靂旋風腿」呢句認真得來帶點凄美地幼稚嘅廣告語,立即我勾起了當年看足球小將時嘅美好回憶。


留住這時光

兩個星期很快就過了,這是我第二次背包旅行,遊了南法、瑞士和布拉格。歐洲的夏天太陽固然猛烈,但氣溫卻不高,空氣是清爽的,所以感覺十分舒服。

這次出遊前敗了一部 LX3,其廣角功能實在一流,拍風景明月勝可謂輕而


How I use ssh's connection sharing feature

Following on the basic overview , here's how Iuse OpenSSH's connection sharing feature.

First, since I hate programs that don't exit when I want them to, Idon't let ssh automatically create connection masters. Instead Ialways explicitly create them myself, so that I can do so in a way thatharmlessly parks them in the background. So while I set a ControlPath (to a value mentioned in the previous entry ),I leave ControlMaster set to no , the default.

When


我為什麼這樣懶

自從香港全面禁煙,我就開始抽煙。從前我不在香港抽煙,香港沒有抽煙的情調。可是,特區政府那家長式的訓令,卻令我感到自己突然多了十個阿媽,嘮嘮叨叨,假定你連應否吸煙都無法決斷,當你低能。有這種愚民政策,才