Home Download Buy Blog Forum Support

Sublime does not open files whose names contain spaces (Linu

Sublime does not open files whose names contain spaces (Linu

Postby rtalexander on Thu Nov 17, 2011 5:38 pm

From the command line (Bash), ST2 will not properly open a file whose name contains spaces. Instead, it opens one file per space-delimited word. For example, the following

Code: Select all
sublime_text "some file name.txt"


will result in ST2 opening separate tabs for "some", "file", and "name.txt". This also happens when escaping the spaces instead of using quites:

Code: Select all
sublime_text some\ file\ name.txt


This occurs in the current stable build,2139, and in all prior builds that I have used.

Thoughts?
rtalexander
 
Posts: 8
Joined: Thu Nov 17, 2011 5:30 pm

Re: Sublime does not open files whose names contain spaces (Linu

Postby facelessuser on Thu Nov 17, 2011 5:51 pm

I have seen this as well.
facelessuser
 
Posts: 1549
Joined: Tue Apr 05, 2011 7:38 pm

Re: Sublime does not open files whose names contain spaces (Linu

Postby jps on Thu Nov 17, 2011 10:03 pm

Sublime Text opens files with spaces in their names just fine. Please check you are launching via a symlink, rather than a shell script that may not quote the arguments correctly.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 10 guests