Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change grep command in README for arm64 to also work with Linux #639

Merged
merged 1 commit into from
May 3, 2024

Conversation

joshuataylor
Copy link
Contributor

Linux does not use arm64 for uname, so grep does not work, leading in a resulting confusing error.

MacOS (Ventura):

Darwin foo 22.6.0 Darwin Kernel Version 22.6.0: Mon Feb 19 19:43:13 PST
2024; root:xnu-8796.141.3.704.6~1/RELEASE_ARM64_T6020 arm64 arm Darwin

Linux aarch64 (OrangePi, Ubuntu 22.04):

Linux foo 5.10.160-rockchip #37 SMP Fri Apr 26 05:16:30 UTC 2024 aarch64
aarch64 aarch64 GNU/Linux

Linux aarch64 (AWS, Ubuntu 24.04):

Linux foo 6.8.0-1008-aws #8-Ubuntu SMP Sat Apr 20 02:43:14 UTC 2024
aarch64 aarch64 aarch64 GNU/Linux

Tested with both system grep and grep 3.11 installed via Homebrew for MacOS:

grep (BSD grep, GNU compatible) 2.6.0-FreeBSD

Homebrew:

grep (GNU grep) 3.11
Packaged by Homebrew
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others; see
<https://git.savannah.gnu.org/cgit/grep.git/tree/AUTHORS>.

grep -P uses PCRE2 10.43 2024-02-16

Consistency, yay.

Linux does not use arm64 for uname, so grep does not work, leading in a
resulting confusing error.

MacOS (Ventura):

```
Darwin foo 22.6.0 Darwin Kernel Version 22.6.0: Mon Feb 19 19:43:13 PST
2024; root:xnu-8796.141.3.704.6~1/RELEASE_ARM64_T6020 arm64 arm Darwin
```

Linux aarch64 (OrangePi, Ubuntu 22.04):
```
Linux foo 5.10.160-rockchip MisterTea#37 SMP Fri Apr 26 05:16:30 UTC 2024 aarch64
aarch64 aarch64 GNU/Linux
```

Linux aarch64 (AWS, Ubuntu 24.04):
```
Linux foo 6.8.0-1008-aws MisterTea#8-Ubuntu SMP Sat Apr 20 02:43:14 UTC 2024
aarch64 aarch64 aarch64 GNU/Linux
```

Tested with both system grep and grep 3.11 installed via Homebrew for
MacOS:

```
grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
```

Homebrew:
```
grep (GNU grep) 3.11
Packaged by Homebrew
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others; see
<https://git.savannah.gnu.org/cgit/grep.git/tree/AUTHORS>.

grep -P uses PCRE2 10.43 2024-02-16
```

Consistency, yay.
@MisterTea
Copy link
Owner

Thanks!

Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.67%. Comparing base (0bcd11e) to head (7272039).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #639      +/-   ##
==========================================
- Coverage   70.77%   70.67%   -0.10%     
==========================================
  Files          51       51              
  Lines        3206     3206              
  Branches      402      402              
==========================================
- Hits         2269     2266       -3     
- Misses        937      940       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MisterTea MisterTea merged commit 66781b0 into MisterTea:master May 3, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants