Why the Bourne shell is not my favorite language

The difference between

for i in "a b"; do
	mv -f $i $i-UBUNTU
	...
done

and

FOO="a b"
for i in $FOO; do
	mv -f $i $i-UBUNTU
	...
done

is subtle (in visual appearance) and easy to accidentally forget, but important.

(Fortunately I am doing test installations in VMWare these days, so a mistake is less tedious than it used to be.)

These are my WanderingThoughts
(About the blog)

GettingAround
Full index of entries
Recent comments

This is part of CSpace, and is written by ChrisSiebenmann.

* * *

Atom feeds are available; see the bottom of most pages.

This is a DWiki.
(Help)

Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web

Search:
Written on 15 November 2006.
(Previous | Next)

Page tools: View Source, Add Comment.
Search:
Login: Password:
Atom Syndication: Recent Comments.

Last modified: Wed Nov 15 18:00:01 2006
This dinky wiki is brought to you by the Insane Hackers Guild, Python sub-branch.