From: Albert Schlef Date: 2008-05-15T07:51:00+09:00 Subject: Re: Can platform agnosticism be achieved? Luis Lavena wrote: > Take as example the following gem install rake tasks (from > DataMapper and Merb dev): > > namespace :gems do > desc 'Uninstall all RubyGems for this project' > task :wipe do > sudo = RUBY_PLATFORM =~ /win32|cygwin/ ? '' : 'sudo' > sh "#{sudo} gem uninstall #{project} --all --ignore-dependencies > --executables; true" > end > end > > > What about remove sudo from there and leave up to the user > to make that decision? IMO you're right. (When I used Fedora I didn't have 'sudo' at all.) How to gain root priviledge is the user's own business. I may install Ruby in my home directory, where I have write access to everything. Putting 'sudo' thingies in Makefiles seems very wrong to me. Everybody knows that when you install a unix program you do 'sudo make install' or 'su -c "make install"' *yourself*. It's *not* in the Makefile. It might be that these programmers originated form the Windows culture. Maybe they believe most of their users too are Linux novices, that don't know about 'permissions', so they foolishly do 'sudo' for them. -- Posted via http://www.ruby-forum.com/.