Blob
- Date:
- Message:
- Various fixes. B - fixed usage, DISPLAY :0 vs :0.0 9term - fixed various terminal things rc - notice traps in Read _p9dir - only run disk code for disks dirread - getdirentries on FreeBSD and Linux are different w.r.t. meaning of off. notify - set up so signals interrupt system calls bprint - use bfmt.
- Actions:
- History | Blame | Raw File
1 #!/bin/sh3 if [ $# -eq 0 ]4 then5 echo 'usage: B file...' 2>&16 exit 17 fi9 if [ "x$DISPLAY" = "x" ]10 then11 sam="/tmp/.sam.$USER"12 else13 if [ "$DISPLAY" = ":0" ]14 then15 DISPLAY=:0.016 fi17 sam="/tmp/.sam.$USER.$DISPLAY"18 fi20 if [ ! -p $sam ]21 then22 echo could not find sam 2>&123 exit 224 else25 for i26 do27 pwd=`pwd`28 file=`cleanname -d $pwd $i`29 line=`echo $file | sed 's/.*://'`30 file=`echo $file | sed 's/:.*//'`31 echo "B $file" >>$sam32 if [ "x$line" != "x" -a "x$line" != "x$file" ]33 then34 echo "$line" >> $sam35 fi36 done37 fi