"RUN" command on Windows

Malcolm Perrior <[email protected]>
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <A338ECC4DD46BC4B8B313F6AACEEC1E302032846@ukhqexchange2.Foresters.co.uk>
Hi

Has anyone used the 4GL "RUN" command within Windows (I'm using TUI mode via MinGW) and come across the following issues?


1)   Several commands on a line won't parse -
e.g. a 4GL with the following snippet:
LET lc_cmd = "pwd ; cd /opt; pwd"

RUN lc_cmd

Returns the following at runtime (running in path /test):

pwd: ignoring non-option arguments

/Test



Whatever sequence of commands I put in there , only the first one is parsed and run, the rest are ignored



2)   Shell variables are not expanded (or recognised?).

e.g. set and export shell variable

WORK=/test/programs
and then run a 4GL with the following snippet:



            LET lc_cmd = "$WORK/myprog.4ge"

     RUN lc_cmd



Returns the following at runtime:

            '$WORK' is not recognised as an internal or external command, operable program or batch file



I've tried using the string ${WORK} in the 4GL with the same result.



Seems RUN behaves oddly on Windows; any ideas if there are workarounds?

Ta

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.