[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tips

> On Fri, 10 Mar 2000, Birger Langkjer wrote:
> > If you set
> > 
> > eval `dircolors /etc/DIR_COLORS`
> > 
> > you also get different colours for file extensions, like .gz, .zip, etc. You
> > can easily add more extensions like .png, .pdf, .ps, just read /etx/DIR_COLORS.
> > Those accents are `grave accents` btw., no other will do for some bizarre
> > reason. That confused me for a long time.
> Well, in shell scripts, the ` accents mean substitute the output of the
> enclosed command, where as ' and " are used for quoting, and have
> different rules about command subsitiution, and characture escaping, IIRC.
> Took me a couple of attempts to parse that while reading _Linux in a
> nutshell_.

The` ` form should no longer be used: first it is ver easy to get
confused and second they are not nestable.  The modern $( ) form
should be used instead.

			Jean Francois Martinez

Project Independence: Linux for the Masses