prompt() { echo -n "$* " } ttyPort() { expr $1 : 'tty\(.*\)' } ttyLocks() { echo $UUCP_LOCKDIR/LCK..`expr /$1 : '.*/\(.*\)'` } ttyAliases() { if [ -z "`echo $1 | grep "^/"`" ]; then printf "/dev/"; fi echo $1 } ttyDev() { if [ -z "`echo $1 | grep "^/"`" ]; then printf "/dev/"; fi echo $1 } checkPort() { return } ttyStty() { echo /usr/bin/stty } ttySpeeds() { speeds= if [ -z "$SPEED" ]; then for s in 38400 19200 9600 4800 2400 1200; do onDev /usr/bin/stty $s /dev/null 2>&1 && speeds="$speeds $s" done fi echo $speeds }