pashage

Yet Another Opinionated Re-engineering of the Unix Password Store
git clone https://git.instinctive.eu/pashage.git
Log | Files | Refs | README | LICENSE

commit 903b287e6b9f1ffb6904b1fb74001836a1fd010f
parent 6ebd2ce33442e802abcb3a018d929f7ea2092045
Author: Natasha Kerensikova <natgh@instinctive.eu>
Date:   Sun, 26 Oct 2025 15:34:20 +0000

Subshell in `random_chars` to fix locale when `tr` is a function
Diffstat:
Msrc/pashage.sh | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/pashage.sh b/src/pashage.sh @@ -82,8 +82,9 @@ grep_filter() { # $1: number of characters # $2: allowed character set random_chars() { - LC_ALL=C tr -dc -- "$2" </dev/urandom | dd ibs=1 obs=1 count="$1" \ - 2>/dev/null || true + ( export LC_ALL=C; \ + tr -dc -- "$2" </dev/urandom | dd ibs=1 obs=1 count="$1" \ + 2>/dev/null || true ) } # Find the deepest recipient file above the given path