Re: Find the path of a shell command
On Mi 12 Okt 2022 at 05:00, Paulo da Silva wrote: > The simple question: How do I find the full path of a shell command > (linux), i.e. how do I obtain the corresponding of, for example, > "type rm" in command line? > > The reason: > I have python program that launches a detached rm. It works pretty well > until it is invoked by cron! I suspect that for cron we need to specify > the full path. > Of course I can hardcode /usr/bin/rm. But, is rm always in /usr/bin? > What about other commands? Why not just use os.unlink ? 'Andreas -- https://mail.python.org/mailman/listinfo/python-list
Re: The Modernization of Emacs: terminology buffer and keybinding
Hi Twisted, > "Twisted" == Twisted <[EMAIL PROTECTED]> writes: Twisted> Let me get this straight. Twisted> In this corner, we have just about every Windows application ever Twisted> developed. When a user needs help, a click on the "help" menu or tap Twisted> of the F1 key is all it takes to obtain some. Sometimes the help is Twisted> not of the greatest quality, but that is another issue we won't Twisted> concern ourselves with here. Almost always when I really needed help in Windows, all it said was: go ask your system administrator. Really helpful :-( Twisted> In the other corner, we have just about every Unix application ever Twisted> developed. When a user needs help, they may do such things as manually Twisted> explore the directories where the application was installed Twisted> (equivalent to rooting around in C:\Program Files\Appname for .hlp Twisted> files, because F1 didn't work and there was no "help" menu, if such a Twisted> thing ever happened on Windoze). Ever heard of man pages? and info? 'Andreas -- Wherever I lay my .emacs, there's my $HOME. -- http://mail.python.org/mailman/listinfo/python-list
Re: The Modernization of Emacs: terminology buffer and keybinding
Hi Twisted, > "Twisted" == Twisted <[EMAIL PROTECTED]> writes: Twisted> That's entirely orthogonal to the issue of interface learning curve OR Twisted> interface ease-of-use. Emacs has deficiencies in both areas, if Twisted> principally the former. (For an example of the latter, consider Twisted> opening a file. Can't remember the exact spelling and capitalization Twisted> of the file name? Sorry, bud, you're SOL. Wrong, ever heard about input completion? Twisted> Go find it in some other app Twisted> and memorize the name, then return to emacs. Wrong. Do you know dired? For even more ease of use use someting like ido, or icicles. It runs rings about Editors like Notepad. Twisted> Now THAT is what I call Twisted> disruptive context switching. Meanwhile even the lowly Notepad Twisted> responds to "open" by displaying a list of text files and tools to Twisted> navigate the folder hierarchy without having to do it blind, while Twisted> still letting you blind-type a path if you remember it. And you can Twisted> also paste the path in from the clipboard. You can do so in emacs as well. Twisted> Unix systems don't even Twisted> *have* a proper system-wide clipboard and copy/paste capability. Under Twisted> X there's a weak, text-only imitation, which doesn't help you much Twisted> when you want to copy a selection from an image in a paint program and Twisted> paste it into a CAD or web-design or specialized image-manipulation Twisted> tool or whatever...you have to save it to a file and load it, which is Twisted> a pain in the butt and slowly clutters your hard drive with Twisted> "temporary" files you occasionally forget to delete. You obviously have no clue about working under Unix either. 'Andreas -- Wherever I lay my .emacs, there's my $HOME. -- http://mail.python.org/mailman/listinfo/python-list
Re: The Modernization of Emacs: terminology buffer and keybinding
Hi Twisted, > "Twisted" == Twisted <[EMAIL PROTECTED]> writes: Twisted> * The operating system where you can do powerful stuff with a command Twisted> line and a script or two, but can also get by without either. (Windows Twisted> fails the former. Linux fails the latter.) Twisted> * For that matter, the operating system whose GUI takes the concept Twisted> behind OLE to its logical conclusion, and lets the user separately Twisted> choose and configure their text editing, this-editing, that-editing, Twisted> whosit-viewing, and the like components, and those components are used Twisted> in building more complex applications. All the alternatives would of Twisted> course adhere to a common interface for a particular sort of Twisted> component, of course. (An OO language like Java lends itself to this, Twisted> what with interfaces and inheritance and dynamic Twisted> class loading!) Have a look at Genera, the OS of the Lisp Machines. It offers all that and much more. Unfortunately it is almost non existent nowadays. 'Andreas -- Wherever I lay my .emacs, there's my $HOME. -- http://mail.python.org/mailman/listinfo/python-list