BTS

Message3777

Author btittelbach
Recipients ft
Date 2011-05-09.23:44:49
Content
as for: 
for i in *; do something-with $i; done
versus
while $1...shift?

the former has word splitting problems in propably just about any shell
scripting language other than zsh. So I consider it bad practise in shell
scripts in general. (Don't want to get too used to the comforts of zsh in case I
need to write a sh script again)

the later has control flow problems, since you absolutely must not forget the
"shift" when you use "continue". But at least it also save miniscule amounts of
memory ;->
History
Date User Action Args
2011-05-09 23:44:50btittelbachsetrecipients: + ft
2011-05-09 23:44:50btittelbachsetmessageid: <1304984690.52.0.492196057226.issue982@bts.grml.org>
2011-05-09 23:44:50btittelbachlinkissue982 messages
2011-05-09 23:44:49btittelbachcreate