Thanks George for your thoughts on this.<br><br>When I did which for "svn" it just pointed towards /opt/csw/bin/svn and didn't show any other path related to svn.<br><br>I also tried find / -name "svn" and even in this case it just lead me to the /opt/csw/bin/svn
<br><br>With all this in hand, I assumed that when I type svn, it should automatically read from /opt/csw/bin/svn, which does not seem to be the case.<br><br>I am guessing , when svn was uninstalled from the box from the location /usr/local/bin the package might have left some mark somewhere and therefore, when I type svn it is still trying to read from there.
<br><br>Currently my path starts from /opt/csw/bin. But I wanted it in the end of my path just because I wanted it to work no matter where I put this in my path, thats all.<br><br>Thanks for all your help.<br><br><br><br>
<div><span class="gmail_quote">On 10/3/07, <b class="gmail_sendername">George Wyche</b> <<a href="mailto:gw@citasystems.com">gw@citasystems.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Adjusting the path and overriding it with soft links (the ln -s command)<br>is an art. There are some strong opinions about that art. Some of the<br>opinions are backed with decent explanations, but most are either just<br>
stated, or are too old to take into account newer security concerns, or<br>are assuming a situation that does not apply to you, or don't account<br>for user lack of resolve to "adhere to policy".<br><br>The fact of the matter is this: You can put /opt/csw/bin at the end of
<br>your path and then place soft links to any (or all) of the commands in<br>/usr/local/bin which is much closer to the front of your path. When your<br>shell searches for "svn" it will find it in /usr/local/bin AND WILL STOP
<br>LOOKING. So it overrides any "svn" that would be found in /opt/sfw/bin.<br><br>The unix "which" command will tell you which of the maybe many "svn"<br>there may be on your computer would be THE ONE to be executed.
<br><br>For historical reasons I use "tcsh" that has a handy command called<br>"where" that looks through the entire path listing all "svn" that exist.<br>Its a nice convenience to decide where to place a soft link to get the
<br>version that you want. [Aside: I got an eye opener when I investigated<br>which tar/gtar/gnutar/star I wanted to use for my "tar".]<br><br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<br>Now then. Why do you want /opt/csw/bin on the end?<br><br>George<br>Binod wrote:<br>> Sorry for deplayed response, and thanks george for your help.<br>><br>> I realized that once I set /opt/csw/bin in the very front of my path
<br>> then all of my svn commands worked fine.<br>><br>> Previously I had installed svn in /usr/local/bin which i got from<br>> sunfreeware. I removed it from there and, therefore, previously when I<br>> ran svn command it was trying to take svn command from that path.
<br>><br>> It was in this format when it didnot work:<br>> >>>>>>>>>>>>>>>>><br>> -bash-3.00$ echo $PATH<br>> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin
<br>><br>><br>><br>> Now it is in this format and my svn commands just work fine:<br>> >>>>>>>>>>>>>><br>> -bash-3.00$ echo $PATH<br>> /opt/csw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:
<br>><br>><br>> But my question now would be is there anyway possible for me to still<br>> keep /opt/csw/bin at the end of my PATH and still make my svn command work ?<br>><br>> Any help would be appreciated and if this is wrong place to post this
<br>> question any direction to the right place would also be a great help.<br>><br>> Thanks,<br>><br>><br>><br>><br>><br>><br>> On 9/26/07, *George Wyche* <<a href="mailto:gwyche@io.com">
gwyche@io.com</a> <mailto:<a href="mailto:gwyche@io.com">gwyche@io.com</a>>> wrote:<br>><br>> @Binod<br>><br>> svn may be an alias. Do a<br>> which svn<br>><br>> cd /opt/csw/bin
<br>> ./svn<br>><br>> would override any svn alias.<br>><br>> > Hi I installed subversion from blastwave couple days ago<br>> > and every thing is working fine. Its in sparc 10 x64.
<br>> ><br>> > My path currently is<br>> ><br>> > -bash-3.00$ echo $PATH<br>> > /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:\<br>> > /usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin
<br>> ><br>><br>> If you are intending on using blastwave software, then please move<br>> /opt/csw/bin to occur before /usr/sfw/bin<br>><br>> And you will probably have to examine /usr/local/bin closely for links
<br>> which might otherwise override your specified order. For example even if<br>> you have /opt/csw/bin:/usr/sfw/bin, but a link in /usr/local/bin<br>> *could*<br>> have an gnutar which points to a gnutar in /usr/sfw/bin NOT in
<br>> /opt/csw/bin. That would be an override. That sort of think has given me<br>> grief in the past.<br>><br>> > but when I type svn I can't get it work.<br>> ><br>> > -
bash-3.00$ svn<br>> > -bash: svn: command not found<br>> ><br>> > But when I go to<br>> ><br>> > cd /opt/csw/bin and then do ./svn It works fine.<br>> ><br>
> > I went ahead and added that /opt/csw/bin (which is a<br>> > global path to my local user .profile file then svn<br>> > commands just work fine)<br>> ><br>> > What is going wrong here ? Can anyone help me out?
<br>> ><br>> > I think if /opt/csw/bin is in global path it should<br>> > be able to run from anywhere without needing to<br>> > provide detail in local.profile file , isn't
<br>> > thats how it works?<br>><br>> That is my understanding. You could look at the permissions, owners,<br>> groups, links associated with each step of the way to /opt/csw/bin/svn.<br>> ls -l /
<br>> ls -l /opt<br>> ls -l /opt/csw<br>> ls -l /opt/csw/bin<br>> ls -l /opt/csw/bin/svn<br>><br>> Look for "strange" things.<br>><br>> Is there something else in<br>
> ><br>> > Any help will be appreciated.<br>> ><br>> > Thanks,<br>><br>><br>> George<br>><br>> _______________________________________________<br>> users mailing list
<br>> <a href="mailto:users@lists.blastwave.org">users@lists.blastwave.org</a> <mailto:<a href="mailto:users@lists.blastwave.org">users@lists.blastwave.org</a>><br>> <a href="https://lists.blastwave.org/mailman/listinfo/users">
https://lists.blastwave.org/mailman/listinfo/users</a><br>><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> users mailing list<br>> <a href="mailto:users@lists.blastwave.org">users@lists.blastwave.org</a><br>> <a href="https://lists.blastwave.org/mailman/listinfo/users">https://lists.blastwave.org/mailman/listinfo/users
</a><br>_______________________________________________<br>users mailing list<br><a href="mailto:users@lists.blastwave.org">users@lists.blastwave.org</a><br><a href="https://lists.blastwave.org/mailman/listinfo/users">https://lists.blastwave.org/mailman/listinfo/users
</a><br></blockquote></div><br>