-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit d56cc81
Configure grep commands in installation script to use POSIX extended syntax
A script is provided to facilitate installation of Arduino Lint.
The grep utility is used for several purposes in the script.
grep supports multiple flavors of regular expression syntax:
* "basic" (BRE)
* "extended" (ERE)
* "perl" (PCRE)
The default "BRE" syntax is inconsistent with the syntax used in all other common regular expression applications:
> In basic regular expressions the meta-characters ?, +, {, |, (, and ) lose their special meaning; instead use the
> backslashed versions \?, \+, \{, \|, \(, and \).
The "PCRE" syntax that would otherwise be preferred is not available when using grep on BSD/macOS machines.
So grep should be configured to use the "ERE" in scripts that are intended to be cross-platform (as is the case with
this script).1 parent f873da4 commit d56cc81
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | - | ||
90 | + | ||
91 | 91 | | |
92 | - | ||
92 | + | ||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | - | ||
171 | + | ||
172 | 172 | | |
173 | - | ||
173 | + | ||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments