#!/bin/sh
if [ $1+$2 -eq 1 ]
then : ;
else echo {$1..$2}
fi
Hello guys, got this code, it should do: write numbers from arg1 to arg2 ($1=3,$2=6 then 3 4 5 6 should be output)and if args are 0 and 1 or 0 and 1 it should do nothing but actually got error and bad output :
./kek1.sh: 2: [: Illegal number: 1+2
{1..2}
anyone know whats wrong?
Thank you.