From 0ffe4c0fd9217ebeac629c2130c27d85521165ae Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Mon, 21 Feb 2011 16:43:11 +0000 Subject: [PATCH] BUG: foamCleanPath: did not remove last element in path when stripping using wildcards --- bin/foamCleanPath | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/foamCleanPath b/bin/foamCleanPath index 71b9c2dfe44..d7860df45bc 100755 --- a/bin/foamCleanPath +++ b/bin/foamCleanPath @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. +# \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -94,7 +94,7 @@ do wildcard=$1 shift ##DEBUG echo "remove>$wildcard<" 1>&2 - dirList=$(echo "$dirList" | sed -e "s@${wildcard}[^:]*:@@g") + dirList=$(echo "$dirList:" | sed -e "s@${wildcard}[^:]*:@@g") done # split on ':' (and on space as well to avoid any surprises) -- GitLab