[Info-vax] Command Line Versus Command Line

Arne Vajhøj arne at vajhoej.dk
Fri May 24 09:00:43 EDT 2024


On 5/23/2024 9:46 PM, Craig A. Berry wrote:
> On 5/23/24 6:22 PM, Arne Vajhøj wrote:
>> On 5/23/2024 6:32 PM, Craig A. Berry wrote:
>>> On 5/23/24 2:05 PM, Arne Vajhøj wrote:
>>>> real: ABC def "GIH" "jkl"
>>>> parse=extended:
>>>> C   : ABC def GIH jkl

>>> Good summary.  Did you have DECC$ARGV_PARSE_STYLE defined for the C 
>>> example?
>>
>> Looks that way:
>>
>> $ sh log *pars*
>>
>> (LNM$PROCESS_TABLE)
>>
>>    "DECC$ARGV_PARSE_STYLE" = "enable"
> 
> I think if you deassign it you'll get abc not ABC.

Confirmed.

real: ABC def "GIH" "jkl"
parse=traditional:
CLI : ABC DEF GIH jkl
FC  : ABC DEF "GIH" "jkl"
Mix : ABC DEF GIH jkl
C   : abc def GIH jkl (DECC$ARGV_PARSE_STYLE = (null))
C   : abc def GIH jkl (DECC$ARGV_PARSE_STYLE = enable)
DCL : ABC DEF GIH jkl
parse=extended:
CLI : ABC DEF GIH jkl
FC  : ABC def "GIH" "jkl"
Mix : ABC DEF GIH jkl
C   : abc def GIH jkl (DECC$ARGV_PARSE_STYLE = (null))
C   : ABC def GIH jkl (DECC$ARGV_PARSE_STYLE = enable)
DCL : ABC DEF GIH jkl

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
     printf("C   :");
     for(int i = 1; i < argc; i++) printf(" %s", argv[i]);
     printf(" (DECC$ARGV_PARSE_STYLE = %s)\n", 
getenv("DECC$ARGV_PARSE_STYLE"));
     return 0;
}

Arne




More information about the Info-vax mailing list