Make `ssh-agent -k' work for csh(1)-like shells.

This commit is contained in:
Ruslan Ermilov 2000-06-10 14:14:28 +00:00
parent 33a41cc438
commit b3ba283ebe

View File

@ -537,7 +537,7 @@ main(int ac, char **av)
if (ac > 0 && (c_flag || k_flag || s_flag))
usage();
if (ac == 0 && !c_flag && !k_flag && !s_flag) {
if (ac == 0 && !c_flag && !s_flag) {
shell = getenv("SHELL");
if (shell != NULL && strncmp(shell + strlen(shell) - 3, "csh", 3) == 0)
c_flag = 1;