Created
July 10, 2019 11:59
-
-
Save fearphage/e6f0a16ec43ab42cab140ba67ac123e3 to your computer and use it in GitHub Desktop.
Does mapfile work on a mac?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mapfile -t meh < <(ps -ax) | |
echo "found ${#meh[@]} processes" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The answer is no.
mapfile
is a feature of Bash 4.0. Macs currently are still on 3.x.Here is the alternative: