From cfdcb47895d61cce6b8bc96a4e7cea1a6f25bb9b Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 14 2012 16:48:06 +0000 Subject: Update `Functions/Commons/cli_getFilesList.sh' file. --- diff --git a/Scripts/Bash/Functions/Commons/cli_getFilesList.sh b/Scripts/Bash/Functions/Commons/cli_getFilesList.sh index f2eccae..f95ba3d 100755 --- a/Scripts/Bash/Functions/Commons/cli_getFilesList.sh +++ b/Scripts/Bash/Functions/Commons/cli_getFilesList.sh @@ -110,7 +110,11 @@ function cli_getFilesList { # to use path expansion. Using path expansion reduce the amount # of places to find out things and so the time required to finish # the task. - PATTERN="^/.*${PATTERN}$" + # + # Don't do such path expansion here. Instead, do it when you call + # this function. Otherwise you would be prohibiting the + # application of exact patterns. + #PATTERN="^/.*${PATTERN}$" # Define list of files to process. At this point we cannot verify # whether the LOCATION is a directory or a file since path