From 5ef86c375170da8981f425a25d44ba6fc681f788 Mon Sep 17 00:00:00 2001 From: Toby Hodges Date: Thu, 7 Nov 2024 16:12:15 +0100 Subject: [PATCH] add inline Instructor Note warning about different flag behaviour --- episodes/05-counting-mining.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/episodes/05-counting-mining.md b/episodes/05-counting-mining.md index 59a900a7..06433a97 100644 --- a/episodes/05-counting-mining.md +++ b/episodes/05-counting-mining.md @@ -649,6 +649,16 @@ $ grep -iw hero *a.tsv > results/hero-i.tsv :::::::::::::::::::::::::::::::::::::::::::::::::: +:::::::::::::::::::::::::::::::::::::::::::::::::: instructor + +### Watch out for different behaviour of the -E option across systems + +Learners may encounter some inconsistent behaviour between operating systems when solving the challenge below. + `grep -E` on macOS acts like `grep -P` on other platforms. + On Windows and Linux, `grep -E` is halfway between `grep -P` and `grep`: it only does what `grep` can do, but uses Perl-compatible syntax to do it. + +::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: + ::::::::::::::::::::::::::::::::::::::: challenge ## Searching with regular expressions