This commit is contained in:
Alexander Wang 2022-12-04 14:56:50 -08:00
parent f0cc4ee320
commit 427368b4d7
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE
2 changed files with 8 additions and 10 deletions

View file

@ -24,11 +24,10 @@ pick() {
seed_file="$(mktemp)"
echo "$seed" >"$seed_file"
# We add 16 more bytes to the seed file for sufficient entropy. Otherwise Cygwin's sort
# for example complains and I'm sure there are more platforms that would too.
# edit: nvm disabled for now, we don't use Cygwin anyway, we use MinGW who has a sort
# that behaves correctly.
# echo "================" >"$seed_file"
# We add 16 more bytes to the seed file for sufficient entropy. Otherwise both Cygwin's
# and MinGW's sort for example complains about the lack of entropy on stderr and writes
# nothing to stdout. I'm sure there are more platforms that would too.
echo "================" >"$seed_file"
while [ $# -gt 0 ]; do
echo "$1"

View file

@ -29,11 +29,10 @@ pick() {
seed_file="$(mktemp)"
echo "$seed" >"$seed_file"
# We add 16 more bytes to the seed file for sufficient entropy. Otherwise Cygwin's sort
# for example complains and I'm sure there are more platforms that would too.
# edit: nvm disabled for now, we don't use Cygwin anyway, we use MinGW who has a sort
# that behaves correctly.
# echo "================" >"$seed_file"
# We add 16 more bytes to the seed file for sufficient entropy. Otherwise both Cygwin's
# and MinGW's sort for example complains about the lack of entropy on stderr and writes
# nothing to stdout. I'm sure there are more platforms that would too.
echo "================" >"$seed_file"
while [ $# -gt 0 ]; do
echo "$1"