Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In Installing RVM manual I see a lot of lines starting with '\':

Install RVM with ruby:

$ \curl -L https://get.rvm.io | bash -s stable --ruby

I'd think it is just mistype but they repeat it many times.

So what is the reason?

share|improve this question
add comment

2 Answers

up vote 15 down vote accepted

There's no error, it's a little hack to avoid using a curl shell alias if any exists.

This works too :

'curl' (...)
"curl" (...)
/usr/bin/curl (...)
command curl (...)
command -p curl (...)
share|improve this answer
    
That tells what the backslash does, still not why they put it there... is curl often alias'ed? Otherwise you could put it in any manual before every command. –  Frank Meulenaar Feb 24 '13 at 7:41
    
maybe they wanted to prevent unwanted options, with an alias like curl='curl -foo' –  sendmoreinfo Feb 27 '13 at 14:39
add comment

A command preceded by a slash temporarily disables any aliases for the command.

Bash Shell Temporarily Disable an Alias

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.