Menu

#1 $IWAS fails with 10+ ttys

open
doughnut
None
7
2001-07-09
2001-07-09
doughnut
No

When there are 10 or more ttys, $IWAS will show more
than one name. The egrep line needs to be more
specific....

[ "$IWAS" = "" ] && IWAS=`who | egrep $TTY | awk
'{print $1}'`

Discussion


Log in to post a comment.

MongoDB Logo MongoDB