Getting quotes into an alias definition?

Robert E. Butts himco2 at sbcglobal.net
Wed Oct 11 00:52:53 UTC 2006


On Tue, 2006-10-10 at 13:58 +0100, Adam Funk wrote:

> Is it possible to get quotes into the definition of a bash alias?
> 
> I've tried a few things like this:
> 
>   alias foo='foo --option=\'*.txt\''
> 
>   alias foo="foo --option='*.txt'"
> 
> but haven't figured out a way that works.



Not sure, honestly, but I note here that one of the permutations you do
not say you've tried is double quotes inside single quotes, like this:  

alias foo='foo --option="*.txt"'


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20061010/a59acd42/attachment.html>


More information about the ubuntu-users mailing list