[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#559344: kldutils: bashism used in /etc/init.d/module-init-tools

On Dec 03 2009, Thorsten Glaser wrote:
> modules="$(cat /etc/modules /etc/modules.d/* 2>/dev/null | \
>     sed -e 's/#.*//g' -e '/^[	 ]*$/d')"
>                              ^  ^-> space
>                              +----> tab

Are character classes (e.g., [[:blank:]]) understood by standard tools?

This way, things can be written without fear of whitespace being broken
and can be legible without needing to resort to things like saying "the
first character that you can't see is a tab and the second is a space".

Regards, Rogério Brito.

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 1024D/7C2CAEB8
http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Reply to: