lua-users home
lua-l archive

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


On 25/09/2014 3.43, Luiz Henrique de Figueiredo wrote:
In Posix, the only possible modes for popen are 'r' and 'w':
	http://pubs.opengroup.org/onlinepubs/009695399/functions/popen.html

To quote: "if mode is any other value, the result is undefined."

Thanks. Here I have a problem, because my workaround (try 'wb' first, use 'w' if I get nil) is not guaranteed to work.

Should I detect the host system (something that I tried to avoid) or is there a cleaner solution?

--
  Enrico