why Unix?
Steven Schveighoffer
schveiguy at yahoo.com
Tue Apr 7 16:53:57 PDT 2009
On Tue, 07 Apr 2009 19:52:12 -0400, Steven Schveighoffer
<schveiguy at yahoo.com> wrote:
> On Tue, 07 Apr 2009 19:41:36 -0400, Jarrett Billingsley
> <jarrett.billingsley at gmail.com> wrote:
>
>> On Tue, Apr 7, 2009 at 7:14 PM, Steven Schveighoffer
>> <schveiguy at yahoo.com> wrote:
>>
>>>> (It also follows that if you wrote a full shellscript, in a .mdsh file
>>>> or something, the compiler would, when compiling it, start in MiniD
>>>> mode by default so you wouldn't have to escape every statement with a
>>>> %.)
>>
>>> I'm a little confused on the escaping. In one example, it looks like %
>>> turns MiniD alternately on and off, yet you say you'd have to escape
>>> every
>>> line in a script file?
>>
>> I'm sure if you read what I've quoted here, you'll see your mistake ;)
>>
>
> What it looks like to me then is:
>
> if you are in interactive mode, the default is script mode, and % turns
> miniD on and off, which continues beyond a single line
> if you are in a script mode, then you are always in miniD mode, unless
> it sees %, which turns it to script mode for a single line.
>
OK, that was *really* confusing, let me re-explain:
if you are in interactive mode, the default is shell mode, and % turns
miniD on and off, which continues beyond a single line
if you are in a script file, then you are always in miniD mode, unless it
sees %, which turns it to shell mode for a single line.
More information about the Digitalmars-d
mailing list