Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Improved help for the "test-which" command, explaining why it is retained even though we now have a "which" command without the "test-" prefix. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
b3f270ffd657c222ecfa8a8304ad5f09 |
| User & Date: | drh 2025-03-16 22:49:33.768 |
Context
|
2025-03-17
| ||
| 11:38 | Omit the /paniclog, /hacklog, and /logsummary pages. All those capabilities are now combined into the /errorlog page. check-in: 2304fb87ac user: drh tags: trunk | |
|
2025-03-16
| ||
| 22:49 | Improved help for the "test-which" command, explaining why it is retained even though we now have a "which" command without the "test-" prefix. check-in: b3f270ffd6 user: drh tags: trunk | |
| 22:44 | Honor the show-only-if-changed flag for boolean settings on the /setup_settings page in addition to in the "settings" command. check-in: 3ba0763bfc user: drh tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 |
/*
** COMMAND: test-which
**
** Usage: %fossil test-which ARGS...
**
** For each argument, search the PATH for the executable with the name
** and print its full pathname.
*/
void test_which_cmd(void){
int i;
for(i=2; i<g.argc; i++){
char *z = file_fullexename(g.argv[i]);
fossil_print("%z\n", z);
}
| > > > > > > > | 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 |
/*
** COMMAND: test-which
**
** Usage: %fossil test-which ARGS...
**
** For each argument, search the PATH for the executable with the name
** and print its full pathname.
**
** See also the "which" command (without the "test-" prefix). The plain
** "which" command is more convenient to use since it provides the -a/-all
** option, and because it is shorter. The "fossil which" command without
** the "test-" prefix is recommended for day-to-day use. This command is
** retained because it tests the internal file_fullexename() function
** whereas plain "which" does not.
*/
void test_which_cmd(void){
int i;
for(i=2; i<g.argc; i++){
char *z = file_fullexename(g.argv[i]);
fossil_print("%z\n", z);
}
|
| ︙ | ︙ |