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

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



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


--