[Info-vax] DCL and scripting

Arne Vajhøj arne at vajhoej.dk
Wed Dec 12 19:59:21 EST 2018


On 12/12/2018 8:52 AM, Simon Clubley wrote:
> On 2018-12-11, Arne Vajhøj <arne at vajhoej.dk> wrote:
>>
>> I am not sure that I could do the same for:
>>
>> $ cc /obj=z sys$input
>> $ deck/dollars="****THE END****"
>> #include <stdio.h>
>>
>> int main()
>> {
>>       printf("Hello world!\n");
>>       return 0;
>> }
>> ****THE END****
>> $ link z
>> $ run z
>> $ exit
>>
>> though.
>>
> 
> Would the following be nicer ?
> 
> cc /obj=z sys$input << "****THE END****"
> #include <stdio.h>
> 
> int main()
> {
>       printf("Hello world!\n");
>       return 0;
> }
> ****THE END****
> 
> link z
> run z
> exit

That is about as obfuscated as the deck version, but it has
one advantage over it - it is not required to bring punched
cards up in the explanation.

Arne



More information about the Info-vax mailing list