When I need to progmatically open in emacs a file that has a space in its name, how can I do that? I've tried these commands from a Ruby script, inside backquotes or popen(…):
emacs "foo bar"
or
emacs foo\ bar
opens two files each named foo and bar, but I want to open a file named foo bar.
emacs "foo bar" RETURN, typing some garbage followed byC-x C-screates a file calledfoo bar.emacs foo\ bar RETURNalso works. My shell isbash. If the shell or emacs is behaving differently for you, then there's something in your environment that is causing it. – Kyle Jones Mar 11 '12 at 0:21popen(...). – sawa Mar 11 '12 at 0:39