Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 445476 - [TERMINALS] Git Bash on Windows - [by option] when pasting convert Windows-style path to Linux-Style
Summary: [TERMINALS] Git Bash on Windows - [by option] when pasting convert Windows-st...
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Target (show other bugs)
Version: 1.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 1.3   Edit
Assignee: Uwe Stieber CLA
QA Contact: Uwe Stieber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 06:13 EDT by Paul Verest CLA
Modified: 2014-10-15 07:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Verest CLA 2014-09-30 06:13:20 EDT
Related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=435014

There is old problem of Windows and Linux.

When as a user in Eclipse IDE I can copy any file path using Cltr+Alt+C (using StartExzplorer https://github.com/basti1302/startexplorer/),
but when I insert into GitBash running after `cd` it is not recognized by Bash.
So \ is to be change to / or \ to become \\

weibl@FX-JSJ532 ~
$ cd C:\Users\weibl\git
sh.exe": cd: C:Usersweiblgit: No such file or directory

weibl@FX-JSJ532 ~
$ cd C:\\Users\\weibl\\git

This would be sticky "smart" function, as there are possible case when such conversion is not needed.

Or can it be other shortcut like "smart insert" ?
Comment 1 Uwe Stieber CLA 2014-10-13 02:33:24 EDT
http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/commit/?id=44c37269499c0a78b9af69da1b5f709404bbeafb

If you have an existing workspace, go to Window > Preferences > Target Explorer > Terminals and either delete the exising "Git Bash" entry (will be recreated on restart) or edit it and checkmark "Translate Backslashes on Paste".
Comment 2 Uwe Stieber CLA 2014-10-13 08:22:16 EDT
.
Comment 3 Paul Verest CLA 2014-10-15 07:28:10 EDT
> and checkmark "Translate Backslashes on Paste".

OK, that will do for most simple cases

Thank you