DISQUS

DISQUS Hello! toxicsoftware.com is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

-url

Started by schwa · 10 months ago

I haven’t posted in a while, been very busy with projects. But here’s a very useful little shell function for getting the URL of a path within a subversion working directory:



function -url
{
info $1 > /dev/null
ERROR=$?
if [ $ ... Continue reading »

2 comments

  • Cool! The only problem on my machine was that the output of sed doesn't strip out the "URL: " prefix as expected. I managed to get the behavior by changing it to this:

    info $1 | grep 'URL: ' | sed 's/URL: //'

    Also somewhere along the line you got smart quotes in your HTML, so the example won't work without editing after copy/pasting into an rc file. I fixed it in the line above by using ' instead of the apostrophe character.
  • Thanks for the comment. I removed the smart quotes (looks like ExpressionEngine likes to transform your quotes for you).

    I'll try out the modification to the sed statement and if it works for me too I'll update the code. Thanks!

Add New Comment

Returning? Login