Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 33060

Summary: Eclipse launcher doesn't honor ~
Product: [Eclipse Project] Platform Reporter: Dirk Baeumer <dirk_baeumer>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:

Description Dirk Baeumer CLA 2003-02-25 13:19:33 EST
RC 1 
 
Starting eclipse using the following command 
 
'/home/dbaeumer/drops/gtk/eclipse/eclipse' -data ~/devel/workspaces/tp1 
 
creates a directory ~ in my home directory instead of devel under my home 
directory.
Comment 1 Rafael Chaves CLA 2003-02-25 17:36:34 EST
I believe "~" as a shortcut to $HOME is a shell feature (some other 
applications may support it as well). Where are you launching Eclipse from a 
KDE/Gnome shortcut, shell command-line (which one), the "Run..." menu...
Comment 2 John Arthorne CLA 2003-02-25 17:39:14 EST
Tilde expansion is done by the unix shell.  Your example below works for me with
bash.  What shell are you using?  Is that the exact command line you used?  A
slightly different placement of the single quotes would create a directory
called ~, for example:


/home/dbaeumer/drops/gtk/eclipse/eclipse -data '~/devel/workspaces/tp1'

However, this is shell behaviour.  The shell doesn't expand tilde inside quoted
strings.
Comment 3 Dirk Baeumer CLA 2003-02-26 14:33:13 EST
I started Eclipse from a KDE desktop short cut. 
Comment 4 John Arthorne CLA 2003-02-28 10:47:03 EST
Closing as duplicate.  

*** This bug has been marked as a duplicate of 33148 ***
Comment 5 John Arthorne CLA 2004-06-09 14:02:44 EDT
*** Bug 66325 has been marked as a duplicate of this bug. ***