about summary refs log tree commit diff stats
path: root/subx/edit
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-07 13:54:16 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-07 13:54:16 -0700
commitbc394aaf39da72d980933a720b6deb8876036c07 (patch)
tree5da22de61ca44b9126de927d157c003d5808794b /subx/edit
parentbbd9c1f9abf44c90117e0e25b629902f0fb06a73 (diff)
downloadmu-bc394aaf39da72d980933a720b6deb8876036c07.tar.gz
4323
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