Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
1942a736
Commit
1942a736
authored
14 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
Bug 1651: pattern characters needed to be changed to avoid expansion by cexec
parent
25fd4e27
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CEP/LMWCommon/src/cexecms
+9
-1
9 additions, 1 deletion
CEP/LMWCommon/src/cexecms
CEP/LMWCommon/src/cexecms-part
+9
-2
9 additions, 2 deletions
CEP/LMWCommon/src/cexecms-part
with
18 additions
and
3 deletions
CEP/LMWCommon/src/cexecms
+
9
−
1
View file @
1942a736
...
@@ -101,6 +101,14 @@ commandnew=`echo "$command" | sed \
...
@@ -101,6 +101,14 @@ commandnew=`echo "$command" | sed \
-e
's%"%:DQUOTE:%g'
\
-e
's%"%:DQUOTE:%g'
\
-e
"s%'%:SQUOTE:%g"
\
-e
"s%'%:SQUOTE:%g"
\
-e
's%\\$%:DOLLAR:%g'
`
-e
's%\\$%:DOLLAR:%g'
`
# Furthermore it expands the nameglob, so change that as well.
nameglobnew
=
`
echo
"
$nameglob
"
|
sed
\
-e
's%\*%:ASTERISK:%g'
\
-e
's%\?%:QUESTIONMARK:%g'
\
-e
's%\[%:LBRACKET:%g'
\
-e
's%\]%:RBRACKET:%g'
\
-e
's%{%:LBRACE:%g'
\
-e
's%}%:RBRACE:%g'
`
cexec
$cluster
cexecms-part
-e
"
$envfile
"
"'
$commandnew
'"
"
$nameglob
"
"
$@
"
cexec
$cluster
cexecms-part
-e
"
$envfile
"
"'
$commandnew
'"
"
$nameglob
new
"
"
$@
"
rm
-f
"
$envfile
"
rm
-f
"
$envfile
"
This diff is collapsed.
Click to expand it.
CEP/LMWCommon/src/cexecms-part
+
9
−
2
View file @
1942a736
...
@@ -46,8 +46,15 @@ if test "$envfile" != ""; then
...
@@ -46,8 +46,15 @@ if test "$envfile" != ""; then
.
$envfile
.
$envfile
fi
fi
# Find all matching files (first substitute # by [0-9]).
# Find all matching files (first substitute # by [0-9] and substitute special characters back).
nameg
=
`
echo
"
$nameglob
"
|
sed
-e
's%#%[0-9]%g'
`
nameg
=
`
echo
"
$nameglob
"
|
sed
\
-e
's%#%[0-9]%g'
\
-e
's%:ASTERISK:%*%g'
\
-e
's%:QUESTIONMARK:%?%g'
\
-e
's%:LBRACKET:%[%g'
\
-e
's%:RBRACKET:%]%g'
\
-e
's%:LBRACE:%{%g'
\
-e
's%:RBRACE:%}%g'
`
names
=
`
ls
-d
$nameg
2>&1
`
names
=
`
ls
-d
$nameg
2>&1
`
if
test
$?
!=
0
;
then
if
test
$?
!=
0
;
then
echo
"No file matching
$nameg
found"
echo
"No file matching
$nameg
found"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment