499 Commits

Author SHA1 Message Date
Francois Gouget
bc176ecb81 cmd: Print error messages on stderr, not on stdout. 2011-12-02 11:53:23 +01:00
Francois Gouget
66db270d22 cmd/tests: Use resynchronization points to better deal with two IF statements tests. 2011-11-30 16:41:12 +01:00
Frédéric Delanoy
a5becedd0e cmd: Reorder global vars declarations/definitions to improve readability. 2011-11-30 11:44:13 +01:00
Frédéric Delanoy
44a1e7d199 cmd: Move commonly used global vars declarations to header file. 2011-11-30 11:44:05 +01:00
Frédéric Delanoy
ad81871f15 cmd: Move a global var to the file using it. 2011-11-30 11:43:21 +01:00
Frédéric Delanoy
513ee9a3aa cmd: Rename unicodePipes variable. 2011-11-29 16:48:33 +01:00
Frédéric Delanoy
1a8df977ac cmd: Reduce the scope of a global variable. 2011-11-29 16:48:22 +01:00
Frédéric Delanoy
51b05c72d7 cmd: Use boolean types for boolean variables. 2011-11-29 16:48:12 +01:00
Frédéric Delanoy
2820ed9764 cmd: Remove an unused global variable. 2011-11-29 16:47:58 +01:00
Francois Gouget
87a770fa73 cmd/tests: Tweak subsection headers so they are treated as resynchronization points. 2011-11-29 13:56:24 +01:00
Francois Gouget
128d0656de cmd/tests: Standardize the batch file section headers. 2011-11-29 13:56:12 +01:00
Francois Gouget
81f64ee906 cmd/tests: Treat lines that start with '---' as resynchronization points. 2011-11-29 13:56:03 +01:00
Eric Pouech
6faea5a606 cmd: Correctly parse program name when launching external processes. 2011-11-29 13:25:55 +01:00
Francois Gouget
3b72928464 cmd: Use WCMD_output_asis*() for strings that are not supposed to contain formating directives. 2011-11-25 17:16:11 +01:00
Frédéric Delanoy
3d028ab67c cmd: Avoid dead assignment (clang). 2011-11-24 20:57:01 +01:00
Frédéric Delanoy
de7841b2ce cmd: Move builtins list to builtins.c. 2011-11-21 15:34:58 +01:00
Frédéric Delanoy
e3a5423478 cmd: Move WCMD_part_execute function to avoid forward declaration. 2011-11-18 15:37:04 +01:00
Frédéric Delanoy
5fc25686a4 cmd: Avoid duplication of commonly used strings. 2011-11-15 11:45:58 +01:00
Frédéric Delanoy
e8d8df3c54 cmd: Trim whitespace in echo on/off. 2011-11-15 11:44:40 +01:00
Frédéric Delanoy
6221e300bc cmd: Avoid comparison between signed and unsigned values. 2011-11-08 13:55:14 +01:00
Frédéric Delanoy
6d01f15a27 cmd: Rename a parameter in WCMD_parameter. 2011-10-31 16:48:33 +01:00
Frédéric Delanoy
41a9450440 cmd: Avoid unnecessary null pointer checks. 2011-10-31 16:48:26 +01:00
Frédéric Delanoy
ecc4d87253 cmd: Fix a comment. 2011-10-28 12:47:10 +02:00
Frédéric Delanoy
45c1dff552 cmd: Make 'if errorlevel' only recognize integer values. 2011-10-28 12:43:27 +02:00
Frédéric Delanoy
42f126e80d cmd: Constify WCMD_pushd parameter. 2011-10-21 12:31:46 +02:00
Frédéric Delanoy
d19455e895 cmd: Rename WCMD_opt_s_strip_quotes function. 2011-10-19 16:38:52 +02:00
Frédéric Delanoy
6fd9d77426 cmd: Make RENAME work for read-only files. 2011-10-14 20:26:43 +02:00
Frédéric Delanoy
d5523fcd80 cmd/tests: Show that read-only files are RENAMEable. 2011-10-14 20:26:43 +02:00
Frédéric Delanoy
1f5c0a6170 cmd/tests: Add tests for directories RENAMEs. 2011-10-14 20:26:43 +02:00
Frédéric Delanoy
1e4c17e5dd cmd: Make MOVE work for read-only files. 2011-10-13 20:07:28 +02:00
Frédéric Delanoy
ad9ae2b8ff cmd/tests: Show that read-only files are MOVEable. 2011-10-13 20:07:26 +02:00
Frédéric Delanoy
212949f108 cmd/tests: Add MOVE tests. 2011-10-11 19:43:47 +02:00
Frédéric Delanoy
e0ec3e400d cmd: Make PAUSE accept any keypress instead of a full input line. 2011-10-08 19:47:10 +02:00
Frédéric Delanoy
1361529289 cmd: Consistently use infinitive forms in commands help summary. 2011-10-08 19:41:39 +02:00
Frédéric Delanoy
cd30c52b35 cmd: Avoid reading char by char from files. 2011-10-06 16:46:41 -05:00
Frédéric Delanoy
5e3cb1867b cmd: Infer handle type from handle value in WCMD_fgets and WCMD_ReadAndParseLine. 2011-10-06 16:46:41 -05:00
Frédéric Delanoy
d25f614c51 cmd: Rename a parameter in WCMD_fgets. 2011-10-05 17:00:12 -05:00
Frédéric Delanoy
63e11558b6 cmd: Improve handle type recognition in WCMD_ReadFile. 2011-10-05 16:59:48 -05:00
Frédéric Delanoy
e2fd09c2e7 cmd: Avoid dead assignments (Clang). 2011-10-05 16:59:18 -05:00
Frédéric Delanoy
5e8893f2f6 cmd: Handle truncation for console reads. 2011-10-03 09:46:11 -05:00
Frédéric Delanoy
e3a72698c1 cmd: Improve WCMD_fgets documentation. 2011-10-03 09:45:49 -05:00
Frédéric Delanoy
aee397a317 cmd: Output error messages to stderr instead of stdout where appropriate. 2011-10-03 09:45:43 -05:00
Frédéric Delanoy
f00aafae85 cmd/tests: Don't convert lines with DOS endings in convert_input_data. 2011-09-28 17:29:45 +02:00
Frédéric Delanoy
29b57ca82d cmd: Get rid of unused parameter in WCMD_ReadFile. 2011-09-28 17:29:24 +02:00
Frédéric Delanoy
d6f4f7308a cmd: Avoid checking whether we're in console mode for every read. 2011-09-28 17:29:10 +02:00
Frédéric Delanoy
a7e1c22a48 cmd: Avoid reading char by char from console. 2011-09-28 17:27:08 +02:00
Frédéric Delanoy
bab0aa765b cmd: Fix comments in WCMD_color. 2011-09-27 16:24:26 +02:00
Frédéric Delanoy
83daee9a89 cmd: Fix WCMD_fgets documentation. 2011-09-26 22:42:01 +02:00
Frédéric Delanoy
9c61656307 cmd: Output error messages to stderr where appropriate. 2011-09-26 22:42:01 +02:00
Frédéric Delanoy
fbddecab77 cmd: Add WCMD_output_stderr function to output error messages to stderr. 2011-09-26 22:42:01 +02:00