delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/09/17/07:32:08

Date: Tue, 17 Sep 1996 14:29:08 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp-workers AT delorie DOT com
Subject: How to launch shell from `system'?
Message-Id: <Pine.SUN.3.91.960917142256.2584B-100000@is>
Mime-Version: 1.0

Testing of the latest version of `system' with Gawk reveals a problem: 
when a command line (meant for ms_sh) includes newlines, it fails, 
because `system' currently passes it via a response file, like this:

		sh -c @response-file

which means the newlines must be backslash-escaped.  However, if I invoke 
the shell instead like this:

		sh -c response-file

it works, because then response-file is treated as a script.

Question:  will I break something if I *always* invoke `sh' like the
latter example (I guess I don't know about Unix shells enough, because
reading their docs I couldn't figure out the difference).  Thanks. 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019