[Info-vax] Unix and DCL shells
Arne Vajhøj
arne at vajhoej.dk
Mon Jan 8 20:18:54 EST 2024
On 1/8/2024 4:41 PM, mjos_examine wrote:
> there could be a VMSBASH foreign command, where you could utilize the
> DECK command, like so:
> $ VMSBASH
> $ DECK
> if ! test -f /path/to/file; then
> echo "File does not exist."
> fi
> $ EOD
>
> You could (in theory) place any arbitrary bash script, for
> interpretation and execution by a VMSBASH foreign command that expects
> to operate in that way, between $DECK and $EOD.
>
> The command preceding the DECK command could function somewhat like the
> niche of #!/bin/bash on UNIX for specifying the desired interpreter for
> the arbitrary syntax that is between $DECK and $EOD.
bash is part of the GNV kit. And it works fine with deck & eod, but
if no bash commands start with $ then deck + eod should not be needed.
This works fine:
$ bash
for i in {1..3}
do
echo $i
done
$
$ bash
$ deck
for i in {1..3}
do
echo $i
done
$ eod
$ exit
Output:
1
2
3
1
2
3
Arne
More information about the Info-vax
mailing list