ENH: silently remove leading ~OpenFOAM/ in bin/foamEtcFile

- makes it easier to cut-and-paste from dictionary contents that use
  the Foam::findEtcFile expansion
This commit is contained in:
Mark Olesen
2010-07-12 11:48:24 +02:00
parent d5efa1cc8a
commit 48696bdb45

View File

@ -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