[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XaAES: bug(s) in shel_write()



> But this patch in environ.c works:

This is a workaround for spaces in arguments, but will not handle the case of empty arguments


Helmut Karlowski <helmut.karlowski@ish.de> schrieb am 23:28 Dienstag, 9.Februar 2016:


Am 09.02.2016, 22:46 Uhr, schrieb Helmut Karlowski:

> toswin should always use ARGV when it's in the environment.
> Is there a reason to not do that?

Yes: It's not there :)

But this patch in environ.c works:

@@ -248,7 +248,7 @@
  put_env(new, COLSprefix, str);
  */
  len = strlen(arg);
- if (len > 124)
+ if (len > 124 || strchr( arg, ' ' ) )
  {
    put_env(new, ARGVprefix, "");
    put_env(new, "", prgname);


-Helmut


--