octave-maintainers
[Top][All Lists]
Advanced

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

MSVC compiler support [patch 32]: ls


From: Michael Goffioul
Subject: MSVC compiler support [patch 32]: ls
Date: Tue, 17 Oct 2006 22:09:35 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Implement "ls" using "cmd /C dir"
Index: src/dirfns.cc
===================================================================
RCS file: /cvs/octave/src/dirfns.cc,v
retrieving revision 1.105
diff -p -c -r1.105 dirfns.cc
*** src/dirfns.cc       1 Sep 2006 18:00:02 -0000       1.105
--- src/dirfns.cc       17 Oct 2006 11:07:42 -0000
*************** from system to system.\n\
*** 179,185 ****
--- 179,189 ----
  
    std::ostringstream ls_buf;
  
+ #ifdef _MSC_VER
+   ls_buf << "cmd /C dir ";
+ #else
    ls_buf << "ls -C ";
+ #endif
    for (int i = 1; i < argc; i++)
      ls_buf << file_ops::tilde_expand (argv[i]) << " ";
  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]