|
From: | Júlio Hoffimann Mendes |
Subject: | [Octave-patch-tracker] [patch #7870] Allow the use of a macro, specifically SHELL_PATH, to provide where sh can be found. |
Date: | Tue, 04 Dec 2012 20:50:47 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/11.10 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19 |
Follow-up Comment #4, patch #7870 (project octave): I realized we're reinventing the wheel here, please read: http://www.gnu.org/software/libc/manual/html_node/Executing-a-File.html According to the link, the execlp() function does exactly the same job with the plus of searching the PATH for the program when no "/" is encountered in the first argument. A nicer diff is attached. (file #27040) _______________________________________________________ Additional Item Attachment: File name: execlp.diff Size:1 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/patch/?7870> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |