head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	2011.11.16.08.29.00;	author dunc;	state Exp;
branches;
next	1.3;

1.3
date	2011.10.14.09.02.55;	author dunc;	state Exp;
branches;
next	1.2;

1.2
date	2002.12.18.08.54.27;	author dunc;	state Exp;
branches;
next	1.1;

1.1
date	2002.12.18.08.53.26;	author dunc;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Use a variable other than i in chkargs() so i is unset after calling it;
cosmetic spacing in case stmt
@
text
@#!/bin/sh
chkargs()
{
  while [ $# -gt 0 ]
  do
    j="$1"
    shift
    case "$j" in
      --) return 0;;
      -*) continue;;
       *) return 0;;
    esac
  done
  return 1
}
if chkargs "$@@";then i=-N;fi
exec less $i "$@@"
@


1.3
log
@Don't turn on -N if all args are options
@
text
@d6 1
a6 1
    i="$1"
d8 1
a8 1
    case "$i" in
d11 1
a11 1
      *)return 0;;
@


1.2
log
@Improved version from OSE
@
text
@d2 15
a16 1
if [ -n "$1" ];then i=-N;fi
@


1.1
log
@Initial revision
@
text
@d2 2
a3 1
exec /usr/local/bin/less $*
@
