From owner-freebsd-questions Tue May 6 08:10:50 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA15668 for questions-outgoing; Tue, 6 May 1997 08:10:50 -0700 (PDT) Received: from iceberg.anchorage.net. (root@iceberg.anchorage.net [207.14.72.150]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id IAA15660 for ; Tue, 6 May 1997 08:10:47 -0700 (PDT) Received: from aak.anchorage.net (ai-129 [207.14.72.129]) by iceberg.anchorage.net. (8.6.11/8.7.3) with SMTP id GAA02468 for ; Tue, 6 May 1997 06:07:29 -0800 Date: Tue, 6 May 1997 07:01:14 -0800 (AKDT) From: Steve Howe X-Sender: abc@aak.anchorage.net To: freebsd-questions Subject: string or int? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk in regards to sh programming ... ------------------------------------------------------------------------- "man test" says to use != and = for strings, and -ne and -eq for integers ... many times, they appear to be interchangable ... what is the rule to determine whether your value is a string or an integer?