Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pa
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ rand_chars() {
#
# $1 = number of chars to receive
# $2 = filter for the chars
LC_ALL=C tr -dc "$2" </dev/urandom | dd ibs=1 obs=1 count="$1" 2>/dev/null
LC_ALL=C tr -dc "$2" </dev/urandom | dd bs=1 count="$1" 2>/dev/null
}

yn() {
Expand All @@ -146,7 +146,7 @@ yn() {

# Read a single byte from stdin using 'dd'. POSIX 'read' has
# no support for single/'N' byte based input from the user.
answer=$(dd ibs=1 count=1 2>/dev/null)
answer=$(dd bs=1 count=1 2>/dev/null)

# Disable raw input, leaving the terminal how we *should*
# have found it.
Expand Down