From bf88d4ec99d628c69f84bcde747f8abbd282030b Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 12 Jun 2017 14:58:13 +0200 Subject: [PATCH] ENH: reduce chance of false positives when generating bash completions - only treat text as an option if it is preceded by 0-4 spaces. This prevents the description of an option from being accidentally detected as an option. --- bin/foamCreateBashCompletions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/foamCreateBashCompletions b/bin/foamCreateBashCompletions index a941a23f33..ea366c1f0f 100755 --- a/bin/foamCreateBashCompletions +++ b/bin/foamCreateBashCompletions @@ -40,7 +40,7 @@ Usage: $Script [OPTION] * Create bash completions for OpenFOAM applications and write to . By default searches directories \$FOAM_APPBIN and \$FOAM_USER_APPBIN - + Options: -d | -directory Directory to process @@ -149,10 +149,10 @@ do echo "Processing $appName" # Options with args - optsWithArgs=($(awk '/^ *-[a-z]/ && /> $outFile unset -f _${appName}