about summary refs log tree commit diff stats
path: root/subx/edit
diff options
context:
space:
mode:
Diffstat (limited to 'subx/edit')
-rwxr-xr-xsubx/edit9
1 files changed, 7 insertions, 2 deletions
diff --git a/subx/edit b/subx/edit
index d229c654..7d09fc17 100755
--- a/subx/edit
+++ b/subx/edit
@@ -3,8 +3,13 @@
 
 if [ $# -eq 0 ]
 then
-  echo "edit <suffix>"
+  echo "edit <file>"
   exit 1
 fi
 
-eval $EDITOR ./teensy/test$1*.[cs]
+if [[ $1 == 'test'* ]]
+then
+  eval $EDITOR ./teensy/$1*.[cs]
+fi
+
+eval $EDITOR ./$1.subx