From 48696bdb45c5f9852cdbd35eeb8bcf4d8cef8447 Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@Germany> Date: Mon, 12 Jul 2010 11:48:24 +0200 Subject: [PATCH] ENH: silently remove leading ~OpenFOAM/ in bin/foamEtcFile - makes it easier to cut-and-paste from dictionary contents that use the Foam::findEtcFile expansion --- bin/foamEtcFile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/foamEtcFile b/bin/foamEtcFile index 7cea6358856..5bae566b55a 100755 --- a/bin/foamEtcFile +++ b/bin/foamEtcFile @@ -195,9 +195,10 @@ done # done -# Save the essential bits of information: +# Save the essential bits of information +# silently remove leading ~OpenFOAM/ (used in Foam::findEtcFile) nArgs=$# -fileName="$1" +fileName="${1#~OpenFOAM/}" # Define the various places to be searched: unset dirList -- GitLab