2007-09-03

bash: 如何判断 stdout 是否是个 terminal

if [ -t 1 ]; then ...

SEE ALSO: isatty(3)

No comments: