From: Iain Patterson Date: Wed, 26 Sep 2007 08:35:39 +0000 (+0000) Subject: Handle COLUMNS and/or LINES being unset. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=6e93c0b5b22d7506b77e9db9a9d0b030ac3d1c8e;p=profile.git Handle COLUMNS and/or LINES being unset. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@71 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/usize b/usize index ec2b25d..73b0346 100755 --- a/usize +++ b/usize @@ -7,8 +7,8 @@ # Usage: usize [] # -width=$COLUMNS -height=$LINES +width=${COLUMNS:-80} +height=${LINES:-24} case $# in 0)