Skip to content

Commit

Permalink
Made more wording changes
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverLok committed Aug 7, 2024
1 parent 0952687 commit 4b97db4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ We are writing bash scripts with the intention of running them in a POSIX enviro

### Grep

The `-P` flag, which stands for "Perl-compatible regular expressions," does not work consistently across operating systems.
More specifically, while it may work as intended on Linux, it behaves differently on Mac. This can lead to unexpected results when run on MacOS. To avoid inconsistency across operating systems, avoid using the `-P` flag. Sometimes, using the `-E` flag may produce the same output that `-P` was going for.
The `-P` flag, which enables perl-compatible regular expressions, does not work consistently across operating systems. More specifically, while it may work as intended on Linux, it behaves differently on Mac. This can lead to unexpected results when run on MacOS. To avoid inconsistency across operating systems, avoid using the `-P` flag. Sometimes, using the `-E` flag, which enables "extended regular expressions," may produce the same output that `-P` was going for.

### Sed and Regular Expression

Expand Down

0 comments on commit 4b97db4

Please sign in to comment.