lubkin@cs.rochester.edu (Saul Lubkin) (05/30/91)
For reasons that I don't understand, the bash "pwd" builtin doesn't work correctly, when compiled with ISC2.2 and with the diffs that I supplied previously. Namely, "pwd" returns an error messaage. I found that commenting out a few lines in "builtins.c" removes the problem. I don't know why. As best as I can see, the original code should work. However, on a system without symbolic links (like ISC2.2), this should slightly improve efficiency, anyway. To apply these diffs, first download bas1.08, apply the official"p1" patches, then the diffs that we posted earlier, and finally the diffs that follow. The "make". Sincerely yours, Saul Lubkin *** builtins.c Wed May 29 20:30:01 1991 --- ../bash/builtins.c Wed May 29 16:04:49 1991 *************** *** 2144,2150 **** no_args (list); ! if (verbatim_pwd) { char *buffer = (char *)xmalloc (MAXPATHLEN); directory = getwd (buffer); --- 2144,2150 ---- no_args (list); ! /* if (verbatim_pwd) { char *buffer = (char *)xmalloc (MAXPATHLEN); directory = getwd (buffer); *************** *** 2156,2164 **** } } else ! { directory = get_working_directory ("pwd"); ! } if (directory) { --- 2156,2164 ---- } } else ! { ISC2.2 doesn't support symbolic links */ directory = get_working_directory ("pwd"); ! /* } ISC2.2 doesn't support symbolic links */ if (directory) {