From 5f7e0d4f9fe73c38087f114ae3eb560a8b9116f1 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 20 Jun 2009 16:28:39 +0200 Subject: [PATCH] Automatically find the next free number for a test file. --- tests/new_test | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/new_test b/tests/new_test index 7da0966c1..63d0b9ec8 100755 --- a/tests/new_test +++ b/tests/new_test @@ -1,12 +1,17 @@ -#!/bin/sh +#!/bin/zsh if [ "$1" = "" ]; then echo 'Name?' exit 1 fi -N=`echo $1 | sed -e 's/\.rb//'` -cat > test-$N.rb < "$new_file" <