From 4d3abf1360ab94493923f2066c4eda059be30528 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 1 Mar 2005 01:15:59 +0000 Subject: [PATCH] Changes needed to use check_for_hostspec() in place of find_colon(). --- batch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/batch.c b/batch.c index 657c9c09..88dad3c1 100644 --- a/batch.c +++ b/batch.c @@ -179,10 +179,7 @@ void write_batch_shell_file(int argc, char *argv[], int file_arg_cnt) } else write_arg(fd, p); } - if ((p = find_colon(argv[argc - 1])) != NULL) { - if (*++p == ':') - p++; - } else + if (!(p = check_for_hostspec(argv[argc - 1], &p, &i))) p = argv[argc - 1]; write(fd, " ${1:-", 6); write_arg(fd, p); -- 2.34.1