LWN.net Logo

Removing the quote distinction?

Removing the quote distinction?

Posted Mar 9, 2008 20:30 UTC (Sun) by Mysingen (guest, #50982)
In reply to: Removing the quote distinction? by smeg4brains
Parent article: Fish - The friendly interactive shell

Why not just escape the variables instead?

set a Hello
set b '\$a is $a'
set a Goodbye
echo $b

should print "$a is Hello"

It is just a hassle to keep track of what will be expanded in bash scripts and I would really
like the distinction between ' and " to go away.


(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds