Max Horn wrote:
[]
If you are trying to get to the angle that the people who will want to use our tool will not have a complex .tcshrc / .cshrc - then I will disagree. Yes, 99% of them won't have one, but I am willing to bet high amounts of money that there are those who have a complex .cshrc. E.g. because a friend installed it for them, or maybe some 3rd party tool we don't know created it, etc. And it's this 1% which will run into problems. Dealing with border cases like this is what takes most of the time in software development.

I would bet that the percentage of people who already have a .cshrc or .tcshrc is much higher than 1%. First-time Fink users in my experience have already tried all kinds of other stuff before, and there is some likelihood that they came across some package that installed a .tcshrc (without telling about it, of course).
[]
Yes that would be a good idea, and might be a good solution for this whole tool, and some other issues. Since I see no way to reliably find out if /sw/bin/init.csh is being loaded, this would nicely solve the problem, I guess. We still would want to do any checks we can in order to avoid having 20 "source" lines in the .cshrc files of our users :-)

One thing I would propose is not to merely check whether there is some code in .cshrc or .tcshrc, but to actually look whether running a login shell puts fink paths into PATH. People (like me, for example) who use the setup from /usr/share/tcsh/examples may have the "source /sw/bin/init.csh" line somewhere in ~/Library/init/tcsh/ and don't use nor need nor want any ~/.cshrc.


As a proof of concept I wrote a sh script finkpathsetup.sh that does what I think needs to be done. It is in my exp folder. It needs polishing, of course, and translation into something clickable.

--
Martin




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to