On Tue, 10 Sep 2002, alexis Vasquez wrote: =>need to assign the TERM variable depending on if user =>is on console TERM=scoansi, but if it's on terminal =>'pts/#' then TERM=vt100.. =>In .bash_profile I saw this. => =>if [ -f ~/.bashrc ]; then => . ~/.bashrc =>fi => =>so I did =>get the value for command 'tty' "Don't know how to do =>this" to the variable tty-type. => =>if tty-type in 'tty[1,2,#]' ; then => TERM=scoansi =>else => TERM=vt100 =>fi
tty_type=$(tty) if [[ ${tty_type%/*} = /dev/pts ]] then TERM=vt100 else TERM=scoansi fi -- -Time flies like the wind. Fruit flies like a banana. Stranger things have - -happened but none stranger than this. Does your driver's license say Organ -Donor?Black holes are where God divided by zero. Listen to me! We are all- -individuals! What if this weren't a hypothetical question? [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list