Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
caucase
Commits
49036c7e
Commit
49036c7e
authored
Dec 13, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell: Escape literal end bracket in "case" patterns.
parent
d6fd5a40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
shell/caucase.sh
shell/caucase.sh
+2
-2
No files found.
shell/caucase.sh
View file @
49036c7e
...
@@ -778,7 +778,7 @@ EOF
...
@@ -778,7 +778,7 @@ EOF
ca_port
=
80
ca_port
=
80
# Note: too bad there is no portable case fall-through...
# Note: too bad there is no portable case fall-through...
case
"
$ca_netloc
"
in
case
"
$ca_netloc
"
in
*
]
:
*
)
*
\
]
:
*
)
# Bracket-enclosed address, which may contain colons
# Bracket-enclosed address, which may contain colons
ca_address
=
"
$(
ca_address
=
"
$(
printf
"%s
\\
n"
"
$ca_netloc
"
|
sed
"s!^
\\
(.*
\\
]
\\
).*!
\\
1!"
printf
"%s
\\
n"
"
$ca_netloc
"
|
sed
"s!^
\\
(.*
\\
]
\\
).*!
\\
1!"
...
@@ -787,7 +787,7 @@ EOF
...
@@ -787,7 +787,7 @@ EOF
printf
"%s
\\
n"
"
$ca_netloc
"
|
sed
"s!^[^
\\
]]*
\\
]:!!"
printf
"%s
\\
n"
"
$ca_netloc
"
|
sed
"s!^[^
\\
]]*
\\
]:!!"
)
"
)
"
;;
;;
*
]
*
)
*
\
]
*
)
# Bracket-enclosed address, which may contain colons
# Bracket-enclosed address, which may contain colons
ca_address
=
"
$(
ca_address
=
"
$(
printf
"%s
\\
n"
"
$ca_netloc
"
|
sed
"s!^
\\
(.*
\\
]
\\
).*!
\\
1!"
printf
"%s
\\
n"
"
$ca_netloc
"
|
sed
"s!^
\\
(.*
\\
]
\\
).*!
\\
1!"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment