Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Bashing away at Unix
- Date: Fri, 14 Mar 2008 02:22:24 -0800
- From: "SL Baur" <steve@example.com>
- Subject: Re: [tlug] Bashing away at Unix
- References: <47D7A519.70409@imaginatorium.org> <20080312101925.5b996fe6.gstewart@bonivet.net> <ed10ee420803140059s7f2c8398p9f06ae4c173f6f69@mail.gmail.com> <78d7dd350803140132x36ca0133m915dd9dee59b24b7@mail.gmail.com> <87y78lskxz.fsf@uwakimon.sk.tsukuba.ac.jp> <78d7dd350803140257t3a3fdbbat913b079a795a425a@mail.gmail.com>
On 3/14/08, Nguyen Vu Hung <vuhung16plus+shape@example.com> wrote: > 2008/3/14, Stephen J. Turnbull <stephen@example.com>: > > Note the "under certain conditions". For example, if as root you do > > > > ln -s /bin/bash ~/sh > > ~/sh > > > > I'll bet you bash reads .profile, and you can verify it with strace, > > too. Yes. When zsh is invoked as sh, it turns off *all* zsh extensions and behaves as a conformant POSIX shell. > It didn't reproduce in CentOS release 5 (Final) I'm not surprised. Bash has never cared much for standards compliance and bash scripts which assume /bin/sh is symlinked to bash have been the bane of Linux for ages. Ksh also behaves somewhat differently if invoked as /bin/sh and that is what I meant when I wrote "under certain conditions". Truth be told, the reliance of Unix user space on a specific meaning of /bin/sh is no different than the reliance of Microsoft Windows user space on a user browser == Internet Explorer. Although it's somewhat amusing that they tend to "innovate", badly our best features and copy our worst mistakes. As Henry Spencer once wrote, "he who does not undertand Unix is doomed to reimplement it badly". -sb
- Follow-Ups:
- Re: [tlug] Bashing away at Unix
- From: Josh Glover
- Re: [tlug] Bashing away at Unix
- From: Stephen J. Turnbull
- Re: [tlug] Bashing away at Unix
- From: Stephen J. Turnbull
- References:
- [tlug] Bashing away at Unix
- From: Brian Chandler
- Re: [tlug] Bashing away at Unix
- From: Godwin Stewart
- Re: [tlug] Bashing away at Unix
- From: SL Baur
- Re: [tlug] Bashing away at Unix
- From: Nguyen Vu Hung
- Re: [tlug] Bashing away at Unix
- From: Stephen J. Turnbull
- Re: [tlug] Bashing away at Unix
- From: Nguyen Vu Hung
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Bashing away at Unix
- Next by Date: Re: [tlug] Bashing away at Unix
- Previous by thread: Re: [tlug] Bashing away at Unix
- Next by thread: Re: [tlug] Bashing away at Unix
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links