Tassilo Horn <[EMAIL PROTECTED]> writes: > > Hi Michael,
Hi Tassilo, >> However, it wouldn't help in the given case, because Tramp failed >> already recognizing the prompt after applying the "sudo" >> command. Setting $INSIDE_EMACS will happen later. > > Really? shell-mode has to recognize the prompt as well, uses the same > regexp and it works there. Local processes of Emacs inherit the settings of `process-environment'. One could set environment variables there, *before* starting the local process. So does `comint-exec-1'. For Tramp, `process-environment' is not set on the remote host. Tramp performs "sudo", and *after* getting the interactive shell on the remote side, it can start setting environment variables, taken from `tramp-remote-process-environment'. In your case, passing the *initial* prompt failed already. > Anyway, we'll see when it's implemented. I'll try to commit tonight. > Bye, > Tassilo Best regards, Michael. _______________________________________________ Tramp-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/tramp-devel
