help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: What's wrong with this code??


From: Santanu
Subject: Re: What's wrong with this code??
Date: Wed, 08 Dec 2010 15:08:41 -0000
User-agent: G2/1.0

On May 18, 2:20 am, Andreas Politz <poli...@fh-trier.de> wrote:
> Santanu <thisissant...@gmail.com> writes:
> > Hello Everybody,
>
> > Can you tell me what is wrong with this code:
> > -------------------
> > (setq
> >    go-packages-installed
> >    (split-string
> >     (shell-command-to-string
> >      "cd $GOROOT/src/pkg && find . -iname *.go | sed -e 's|^\./||g; s|/
> > [^/]*\.go||g' | sort | uniq"\
> > )))
>
> You have to escape the backslash characters, because of string
> expansion.

Spot on. Thank you very much.
BTW, can you also explain a bit what it means when I don't put the
double backslash character, and instead use a single backslash?
I ask this because my original code (the incorrect one above) did
produce some correct results.

Regards,
Santanu


reply via email to

[Prev in Thread] Current Thread [Next in Thread]