fix genpwd, exclude backlash from created passwords

whole-command-tab-completion
bretello 2019-12-07 22:33:29 +01:00
parent 0860036eff
commit 6965891895
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ function genpwd
else
strlen=32
fi
/bin/cat /dev/urandom | env LC_CTYPE=C gtr -dc '[:graph:]' | fold -w $strlen | head -n 1
# All characters excluding backlash
env LC_CTYPE=C tr -dc '[:graph]\' < /dev/urandom | fold -w $strlen | head -n 1
}