Removing the quote distinction?
Posted May 19, 2005 17:44 UTC (Thu) by
smeg4brains (subscriber, #207)
In reply to:
Removing the quote distinction? by liljencrantz
Parent article:
Fish - The friendly interactive shell
Yeah.. the language seems pretty nice, but I do have to agree with people that the quotes should be handled differently..
Maybe keep the difference in the quotes as usual, but steal python's
''' , '' , '
and
""" , "" , "
ideas.
All of the single quote variations could skip the variable expansion, but all of the double quote versions could expand variables..
This way you can keep some of the backward compatibility with bash/sh, but you also have cleaner/better quote mechanisms as well..
Example:
echo """Hello $USER
Welcome to "Ackerman.umci.com".
All connections logged."""
echo '''To add to your $PATH variable, use something like:
export PATH="$PATH:/home/jeffb/.bin/" '''
(
Log in to post comments)