projects
/
abcde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0c06488
)
Fix quoting of PATTERN - it clearly needs to substitute $1 in
author
Steve McIntyre
<steve@einval.com>
Thu, 1 Mar 2018 20:17:58 +0000
(20:17 +0000)
committer
Steve McIntyre
<steve@einval.com>
Thu, 1 Mar 2018 20:17:58 +0000
(20:17 +0000)
abcde
patch
|
blob
|
history
diff --git
a/abcde
b/abcde
index
5e2d41e
..
3ad7ff7
100755
(executable)
--- a/
abcde
+++ b/
abcde
@@
-152,7
+152,7
@@
get_last()
checkstatus ()
{
# Take the last line in the status file if there's multiple matches
checkstatus ()
{
# Take the last line in the status file if there's multiple matches
- PATTERN=
'^$1(=.*)?$'
+ PATTERN=
"^$1(=.*)?$"
BLURB=$(grep -E "$PATTERN" "${ABCDETEMPDIR}/status" | tail -n 1)
if [ -z "$BLURB" ]; then
BLURB=$(grep -E "$PATTERN" "${ABCDETEMPDIR}/status" | tail -n 1)
if [ -z "$BLURB" ]; then
@@
-179,7
+179,7
@@
checkwarnings ()
return 1
fi
# Take the last line in the status file if there's multiple matches
return 1
fi
# Take the last line in the status file if there's multiple matches
- PATTERN=
'^$1(:.*)?$'
+ PATTERN=
"^$1(:.*)?$"
BLURB=$(grep -E "$PATTERN" "${ABCDETEMPDIR}/warnings" | tail -n 1)
if [ -z "$BLURB" ]; then
BLURB=$(grep -E "$PATTERN" "${ABCDETEMPDIR}/warnings" | tail -n 1)
if [ -z "$BLURB" ]; then
@@
-202,7
+202,7
@@
checkerrors ()
return 1
fi
# Take the last line in the status file if there's multiple matches
return 1
fi
# Take the last line in the status file if there's multiple matches
- PATTERN=
'^$1(:.*)?$'
+ PATTERN=
"^$1(:.*)?$"
BLURB=$(grep -E "$PATTERN" "${ABCDETEMPDIR}/errors" | tail -n 1)
if [ -z "$BLURB" ]; then
BLURB=$(grep -E "$PATTERN" "${ABCDETEMPDIR}/errors" | tail -n 1)
if [ -z "$BLURB" ]; then