You are not logged in.

#1 2010-10-16 18:39:39

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Alias was changed automatically

Hi.
I created some alias in ~/.bashrc looking like

alias backup='blah-blah-blah && echo 'All is done correctly.''

Then I rebooted my PC and it automatically became

alias backup='blah-blah-blah && echo ''All is done correctly.'

Quotes changed. Why? What was incorrect? Is it autocorrection?

Offline

#2 2010-10-16 18:41:51

kmason
Member
From: Tempe, Arizona, USA
Registered: 2010-03-23
Posts: 256
Website

Re: Alias was changed automatically

Try this:

alias backup="blah-blah-blah && echo 'All is done correctly.'"

Usually when surrounding quotes with quotes, the outside quotes have to be double and the inside have to be single.

Offline

Board footer

Powered by FluxBB