commit - 00b80edb976f338a22fa8140b11e4b66c79b28d2
commit + b9b5cea4eda1c011cfc2e18c8b89987d4298cb7c
blob - /dev/null
blob + c1a4b163b73b2d7bc3056a03fd487d4d522f83a1 (mode 755)
--- /dev/null
+++ bin/B
+#!/bin/sh
+
+if [ $# -eq 0 ]
+then
+ echo 'usage: B cmd...' 2>&1
+ exit 1
+fi
+
+if [ "x$DISPLAY" = "x" ]
+then
+ sam="/tmp/.sam.$USER"
+else
+ sam="/tmp/.sam.$USER.$DISPLAY"
+fi
+
+if [ ! -p $sam ]
+then
+ echo could not find sam 2>&1
+ exit 2
+else
+ pwd=`pwd`
+ for i
+ do
+ case $i in
+ /*)
+ echo "B $i" >>$sam
+ ;;
+ *)
+ echo "B $pwd/$i" >>$sam
+ ;;
+ esac
+ done
+fi
blob - /dev/null
blob + 7d3a0fb07416f7eb7faec2c4ef12a457d5d42041 (mode 755)
--- /dev/null
+++ bin/samsave
+#!/bin/sh
+# Copyright (c) 1998 Lucent Technologies - All rights reserved.
+
+file=$1
+case "$2" in
+-f)
+ echo "$file"
+ cat >$file
+ ;;
+"")
+ echo "$file?"
+ read yn </dev/tty
+ case "$yn" in
+ [Yy]*)
+ cat >$file
+ esac
+esac
+