PhrozenByte/rmtrash

infinite tty: illegal option

JC1738 opened this issue · 1 comments

Running MacOS 10.14.3 with bash

Install trash-cli
Added rmtrash to /usr/local/bin

Calling rmtrash or rmtrashdir gets an infinite output of below. It works on ubuntu without an issue.

Thanks!

tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -
usage: tty [-s]
tty: illegal option -- -

Try replacing both

rmtrash/rmtrash

Line 223 in 2423e05

tty --quiet

and

tty --quiet

by

tty -s

Does it work then?