From c6e6deed89b609aabb297220d94a642b02da5235 Mon Sep 17 00:00:00 2001 From: heinzel Date: Fri, 10 Feb 2006 11:43:53 +0000 Subject: [PATCH] Bugfix: Added quotes around the [[:alnum:]] in the code to count the defined colors. --- xtermmaker.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xtermmaker.sh b/xtermmaker.sh index b8ceb83..7bc8cb1 100755 --- a/xtermmaker.sh +++ b/xtermmaker.sh @@ -1,7 +1,7 @@ #!/bin/bash # ~/scripts/xtermmaker.sh -# $Id: xtermmaker.sh,v 1.8 2005/07/19 12:12:37 heinzel Exp $ -VERSION='XTermMaker Version 4.0 $Revision: 1.8 $ ($Date: 2005/07/19 12:12:37 $ $Author: heinzel $)' +# $Id: xtermmaker.sh,v 1.9 2006/02/10 11:43:53 heinzel Exp $ +VERSION='XTermMaker Version 4.1 $Revision: 1.9 $ ($Date: 2006/02/10 11:43:53 $ $Author: heinzel $)' ### config ### CONFIG="${HOME}/.xtermmakerrc" @@ -238,7 +238,7 @@ hpos="$hoffset" vpos="$voffset" eval colors="\"\${THEME_${THEME}%,}\"" -ncolors="`echo \"$colors\" | tr -d [[:alnum:]]`" +ncolors="`echo \"$colors\" | tr -d '[[:alnum:]]'`" ncolors="${#ncolors}" ncolors="`expr $ncolors + 1`"