A fork of Git containing Windows-specific patches. - git/exec-cmd.c at v2.45.0-rc1.windows.1 · git-for-windows/git
git/exec_cmd.c Go to file Copy path 167 lines (132 sloc)3.22 KB RawBlame #include"cache.h" #include"exec_cmd.h" #include"quote.h" #defineMAX_ARGS32 staticconstchar*argv_exec_path; staticconstchar*argv0_path; constchar*system_path(constchar*path) ...
public void attemptLaunch(String app_cmd) { try { Runtime.getRuntime().exec(app_cmd); } catch(java.io.IOException ioe) { JOptionPane.showMessageDialog(this, "Windows could not provide a default\napplication for this file type or protocol.\nSuitable application not found!", "Error", JOp...
cmdlinux[1] = "-c"; cmdlinux[2] = "/usr/bin/flow-print -f 5 <"+path; try { Runtime rt = Runtime.getRuntime(); Process proc = rt.exec(cmdlinux); InputStream stderr = proc.getErrorStream(); InputStreamReader isr = new InputStreamReader(stderr); BufferedReader br = new Buff...
git/exec_cmd.c Go to file Copy path 167 lines (132 sloc)3.22 KB RawBlame #include"cache.h" #include"exec_cmd.h" #include"quote.h" #defineMAX_ARGS32 staticconstchar*argv_exec_path; staticconstchar*argv0_path; constchar*system_path(constchar*path) ...
int execv_git_cmd(const char **argv) { char git_command[PATH_MAX + 1]; int i; const char *paths[] = { current_exec_path, getenv(EXEC_PATH_ENVIRONMENT), builtin_exec_path }; for (i = 0; i < ARRAY_SIZE(paths); ++i) { size_t len; int rc; const char *exec_dir = paths...
Unicode: cmd parameters (main args); exec parameters; filenames Robert Grampp Greenhorn Posts: 5 posted 16 years ago Hi there, Java is said to be "unicode ready". That's relatively easy as long as I stay within the JVM. It gets difficult at the interfaces to the shell (main/exe...
git_get_exec_path_from_argv0(buf, argv0)) { return-1; } if(strbuf_normalize_path(buf)) { trace_printf("trace: could not normalize path:%s\n", buf->buf); return-1; } trace2_cmd_path(buf->buf); return0; } voidgit_resolve_executable_dir(constchar*argv0) ...
externvoidgit_set_argv_exec_path(constchar*exec_path); externconstchar*git_extract_argv0_path(constchar*path); externconstchar*git_exec_path(void); externvoidsetup_path(void); externconstchar**prepare_git_cmd(constchar**argv); externintexecv_git_cmd(constchar**argv);/*NULL terminated*/ ...
#define GIT_EXEC_CMD_H extern void git_set_argv_exec_path(const char *exec_path); extern const char *git_extract_argv0_path(const char *path); extern const char *git_exec_path(void); extern void setup_path(void); extern const char **prepare_git_cmd(const char **argv); extern int...