[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] problem with find-file in --eval from command line
From: |
Achim Gratz |
Subject: |
Re: [O] problem with find-file in --eval from command line |
Date: |
Wed, 24 Aug 2011 19:54:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Herbert Sitz <address@hidden> writes:
> In Linux I'm not sure how to do the quoting. I tried this:
>
> ---> emacs --eval "( find-file "/home/somefile.org" )"
Provided you don't use any completely exotic shell, that is what Emacs
gets to see:
( find-file /home/somefile.org )
> And I get the error:
>
> Symbols' value as variable is void: /home/somefile\.org
>
> It seems there's some problem with the period in the filename, but maybe it's
> more than that. Can anyone explain how to properly quote the Linux
> commandline
> version? (File comes up fine if I just do find-file in a running emacs.)
A safe way to quote this particular invocation:
emacs --eval '( find-file "/home/somefile.org" )'
This only works in tcsh
emacs --eval "( find-file \\"/home/somefile.org\\" ) "
Bash needs this instead
emacs --eval "( find-file "'"'"/home/somefile.org"'"'" ) "
THere may be other solutions for bash, but I never really got the hang
of their quoting rules.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada