Monday, March 31. 2008BEH: eshell and suTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
"And that's it! you have a fully functional 'suded' eshell with completition available."
Maybe there's a way to do it differently, but for me the sudoed eshell is hardly fully functional. There's a noticeable delay when executing commands because of how TRAMP works. Commands like 'make install' don't show ANY of their output until make has finished, and anything graphical like make menuconfig doesn't work at all.
Of course, 'make menuconfig' should be done as a normal user anyway, but it still doesn't work in eshell.
Eshell is a pure-lisp implementation, with OS independence in mind AFAIK. So eshell doesn't implement the ability to 'su', and to do this it will need to be implemented on lisp... and that's what tramp is. Using any program that does any screen "mangling" (i.e. ncurses) won't work at all (e.g. make menuconfig). You're right... 'fully functional' is maybe too much to say, but is better than nothing ;)
Yes, it definitely is better than nothing. I was hoping someone would know of a way to speed up TRAMP, but I guess not. The problem is that it waits for the output of the command before sending it back to the screen, which isn't practical for some commands. Maybe a pipe/FIFO/something similar could be used so that TRAMP displays the output as it arrives?
|
Me
rlazo Emacs and Gentoo fanboy rlazo.pazREMOVETHIS@gmail.com CalendarQuicksearchCategoriesRecently addedArchivesPhotoblog Entriessupersized.orgLicence |