Giter Club home page Giter Club logo

Comments (5)

jschwartzenberg avatar jschwartzenberg commented on June 6, 2024

This doesn't work yet. Maybe you can try my scripts to reproduce?

from comcom64.

stsp avatar stsp commented on June 6, 2024

Yes, can reproduce.

from comcom64.

stsp avatar stsp commented on June 6, 2024

There is no standard way in DOS to pass
such big cmdlines. There are some techniques
like CMDLINE= env var, but the DOS app should
be prepared to take the args from that var, and
unix.com is not.
There is a certain short-cut between freecom and
dosemu2 tools that allows to pass such a big cmd
lines directly, bypassing DOS exec. But you won't
be able to e.g. pass such a big cmdline to wget -
only to dosemu2 tools. Of course you got lucky that
unix.com passes that to wget under linux where there
is no such limit. So in your case things surprisingly
worked, but I'd say you were exceptionally lucky.
You won't get this to work on any other emulators
including dosemu1, but dosemu2 is full of surprises
even for me (i.e. I couldn't believe my eyes seeing
this works under freecom).
It is indeed impossible, but the aforementioned
short-cut for dosemu2 tools may eventually be added
to comcom32, see #10.

Another option is to declare unix.com special
and add an ability to it to take the cmdline from
CMDLINE= var. It is an arguably valid to assume
that only "unix.com" may need a very long command
lines.

from comcom64.

stsp avatar stsp commented on June 6, 2024

and add an ability to it to take the cmdline from
CMDLINE= var

And that looks problematic as djgpp does this
trick only for shells (compares the program name
to the list of known shells). Otherwise it just
truncates the cmdline to 126 (not 127!) bytes,
so its quite difficult to get an indication that the
line was truncated (127 is such an indication).

from comcom64.

stsp avatar stsp commented on June 6, 2024

Now you can pass long cmdlines
(up to 256 chars) to unix.com with
comcom64/32, similar to how it
was with freecom.

from comcom64.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.