Skip to content

Commit

Permalink
Ignoring all output from exec.
Browse files Browse the repository at this point in the history
  • Loading branch information
MIvanchev committed Jan 22, 2024
1 parent 7419157 commit 9eb3aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ stty -echo
# Open a file descriptor to a process that never generates any input. This
# is used to hack a sleep-like logic using read because read doesn't create
# a new process.
exec 3<> <(:) 2>/dev/null || {
{ exec 3<> <(:); } 2>/dev/null || {
fifo=$(mktemp -u)
mkfifo -m 700 "$fifo"
exec 3<>"$fifo"
Expand Down

0 comments on commit 9eb3aaa

Please sign in to comment.