From: corinna DOT vinschen AT cityweb DOT de (Corinna Vinschen) Subject: small patch to `ps' 18 Nov 1998 15:50:07 -0800 Message-ID: <36535AB1.D5BD9AB4.cygnus.cygwin32.developers@cityweb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: cygwin32-developers AT cygnus DOT com Hello, It's a simple (maybe unimportant) patch to winsup/utils/ps.cc: I think, it's improper, that the paths to the binaries of the running processes are printed as windows path names. Some projects have scripts, which do `awk' etc. on the ps output and the win path may break shell scripts, which rely on this paths. Regards, Corinna ChangeLog: ---------- Wed Nov 16 23:38:13 Corinna Vinschen * utils/ps.cc (main): converting windows paths to posix paths in output. ---- snip ---- --- ps.cc.orig Wed Nov 18 23:38:03 1998 +++ ps.cc Wed Nov 18 23:38:13 1998 @@ -115,7 +115,12 @@ main (int argc, char *argv[]) else if (p->process_state & PID_TTYOU) status = 'O'; - const char *pname = (p->process_state & PID_ZOMBIE) ? "" : p->progname; + char pname[512]; + if (p->process_state & PID_ZOMBIE) + strcpy (pname, ""); + else + cygwin_conv_to_posix_path (p->progname, pname); + char uname[128]; if (fflag)