A Bourne shell irritationI was bitten by this today, so I am going to grump about it. Today's irritation with the Bourne shell is that the following is illegal syntax: echo hi &; This probably looks peculiar and silly, so let me give a real example that is also illegal:
So is ' (The status of newline is somewhat confusing; the best explanation may
be the original V7 This becomes more irritating when you write command lines with multiple backgroundings in them, for example:
Speaking for myself, that makes my eyes bleed. I find it much more readable and easier to write:
(I think a lot of the eye-bleeding is that ' I have no idea why Bourne decided to be so nit-picky about this aspect of the shell's grammar, but I suspect it mirrors some bit of Algol. (As an aside, I note that the original V7 Bourne shell manpage is a marvel of packing a great deal of information into not much space and being reasonably lucid in the process.) (2 comments.)
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |