lilalo

diff l3bashrc @ 158:d775ffd49dbf

minifix: bsd/darwin in uname
author Igor Chubin <igor@chub.in>
date Wed Feb 01 17:14:54 2012 +0200 (2012-02-01)
parents 137cf5a580be
children
line diff
     1.1 --- a/l3bashrc	Mon Nov 28 13:26:46 2011 +0200
     1.2 +++ b/l3bashrc	Wed Feb 01 17:14:54 2012 +0200
     1.3 @@ -44,7 +44,7 @@
     1.4  # and del  vvvv this if it does
     1.5  
     1.6      export L3_TTY=`/usr/bin/tty` 
     1.7 -    uname -a | grep -qi bsd && bsd=yes
     1.8 +    uname -a | egrep -qi '(bsd|darwin)' && bsd=yes
     1.9      proc_on_the_term=`w | grep "${L3_TTY##/dev/}" | awk '{print $8;}'`
    1.10      # freeBSD: 
    1.11      [ -n "$bsd" ] && \
    1.12 @@ -60,7 +60,7 @@
    1.13      mkdir -p $L3_HOME
    1.14  
    1.15      tty=`/usr/bin/tty`
    1.16 -    uname -a | grep -qi bsd && bsd=yes
    1.17 +    uname -a | egrep -qi '(bsd|darwin)' && bsd=yes
    1.18      parent=`cat /proc/$PPID/cmdline 2> /dev/null`
    1.19      [ -z "$parent" ] && parent="`ps waux | awk '{if ($2 == '$PPID') print $11; }'`"
    1.20      system=`uname -rs`
    1.21 @@ -92,7 +92,7 @@
    1.22  
    1.23  _l3_run_script()
    1.24  {
    1.25 -    uname -a | grep -qi bsd && bsd=yes
    1.26 +    uname -a | egrep -qi '(bsd|darwin)' && bsd=yes
    1.27      flush="-f"                          #linux
    1.28      [ -n "$bsd" ] && flush="-t 0"       #freebsd
    1.29      export L3_PARENT_TTY=`/usr/bin/tty`