diff options
Diffstat (limited to 'subx/edit')
-rwxr-xr-x | subx/edit | 9 |
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 |