Article View: comp.sys.amiga.introduction
Article #1970Re: "=" Question
From: Dr. Peter Kittel
Date: Fri, 01 Mar 1996 06:43
Date: Fri, 01 Mar 1996 06:43
26 lines
1448 bytes
1448 bytes
In article <641.6628T629T99@ibm.net> geohei@ibm.net (Georges Heinesch) writes:
>
>But !
>
>Why can't the "Echo" command print a "=" if not between quotes?
>
>Try : 1. Echo "w=2"
> 2. Echo w=2
Simple: When entered without quotes, the equals sign has a special
meaning in AmigaDOS command lines. You can always link the name
and the value of an argument by this sign. It's only necessary in
cases where else an ambiguity would happen, so hardly anybody uses
it in normal life. One example from my old scripts is from before
the times with the backtick feature. Without this, you had to write
really awkward lines like
EVAL <ENV:Schleife{$$} >NIL: TO=T:Qwe{$$} VALUE2=1 OP=- ?
just to decrease the value of Schleife by 1.
So in the above case the sign is interpreted by AmigaDOS and thus
not displayed as part of the result.
--
Best Regards, Dr. Peter Kittel // Visit http://www.amiga.de
Private Site in Frankfurt, Germany \X/ Email to: peterk@combo.ganesha.com
Employed at AMIGA Technologies GmbH in Bensheim, Germany
Technical Details
Message-ID:
<peterk.0lcr@combo.ganesha.com>Path:
arc1-ca.pugleaf.net!combo.ganesha.com!peterkReferences:
<158.6621T803T1523@ibm.net> <4g8597$8aa@guava.epix.net> <641.6628T629T99@ibm.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!combo.ganesha.com!peterk From: peterk@combo.ganesha.com (Dr. Peter Kittel) Subject: Re: "=" Question Newsgroups: comp.sys.amiga.introduction Reply-To: peterk@combo.ganesha.com References: <158.6621T803T1523@ibm.net> <4g8597$8aa@guava.epix.net> <641.6628T629T99@ibm.net> Message-ID: <peterk.0lcr@combo.ganesha.com> Date: 1 Mar 96 07:43:44 MEZ Organization: Private Site