We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba8eb47 commit 136c790Copy full SHA for 136c790
bin/E
@@ -12,9 +12,9 @@ B "$@"
12
echo editing "$@"
13
14
p=$(realpath $file)
15
-9p read acme/index | grep -q $p
16
-if [ $? -eq 0 ]; then
17
- 9p read acme/log 2> /dev/null | grep -q "del $p"
+win=$(9p read acme/index | awk -v p=$p '$0 ~ p {print $1}')
+if [ "$win" -gt 0 ]; then
+ $PLAN9/src/cmd/o.9p read acme/log | sed -n "/$win del/q"
18
else
19
while sleep 1
20
do
0 commit comments