8ca3d3c0f3
OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=6eda0af767546d82eace32504fe56735
23 lines
562 B
Plaintext
23 lines
562 B
Plaintext
--- tw.parse.c
|
|
+++ tw.parse.c 2008-11-26 17:52:07.190195106 +0000
|
|
@@ -347,9 +347,19 @@ tenematch(Char *inputline, int num_read,
|
|
goto end;
|
|
}
|
|
}
|
|
+
|
|
Strbuf_append(&wordbuf, qline.s + wordp);
|
|
Strbuf_terminate(&wordbuf);
|
|
cleanup_push(&wordbuf, Strbuf_cleanup);
|
|
+
|
|
+ if ((looking == TW_COMMAND) && (*wordbuf.s == '/')) {
|
|
+ if (executable((Char*)0, wordbuf.s, 0)) {
|
|
+ cleanup_until(&wordbuf);
|
|
+ search_ret = 0;
|
|
+ goto end;
|
|
+ }
|
|
+ }
|
|
+
|
|
search_ret = spell_me(&wordbuf, looking, pat, suf);
|
|
qline.len = wordp;
|
|
Strbuf_append(&qline, wordbuf.s);
|