{"thread":{"id":"36179","subject":"[PATCH] gitk: Avoid issues with script path format","startedAt":"2014-03-16T06:12:22Z","lastAt":"2014-03-16T06:12:22Z","messageCount":1,"participants":["Steven Penny"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"236817","messageId":"1394950342-1580-1-git-send-email-svnpenn@gmail.com","threadId":"36179","inReplyTo":null,"subject":"[PATCH] gitk: Avoid issues with script path format","fromName":"Steven Penny","fromEmail":"svnpenn@gmail.com","sentAt":"2014-03-16T06:12:22Z","receivedAt":"2014-03-16T06:12:22Z","isPatch":true,"sender":{"key":"svnpenn@gmail.com","avatar":"https://avatars.githubusercontent.com/u/60531334?v=4"},"body":"Tk’s \"wish\" for Windows can be built two ways\n\nwin   this provides a \"wish\" that uses GDI; it only understands Windows\n      paths such as C:\\foo\\bar\nunix  this provides a \"wish\" that uses X11; it understands Windows and Cygwin\n      paths such as C:\\foo\\bar or /foo/bar\n\nSome Cygwin users will prefer to use the \"win\" version, as it avoids the large\nX11 dependency. However Cygwin passes the path \"/bin/gitk\" or similar and the\n\"win\" version of \"wish\" will not understand this. However \"wish\" does understand\nSTDIN. Options such as \"--all\" will still work using this method as well.\n\nSigned-off-by: Steven Penny <svnpenn@gmail.com>\n---\n gitk-git/gitk | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/gitk-git/gitk b/gitk-git/gitk\nindex 90764e8..64a125d 100755\n--- a/gitk-git/gitk\n+++ b/gitk-git/gitk\n@@ -1,6 +1,6 @@\n #!/bin/sh\n # Tcl ignores the next line -*- tcl -*- \\\n-exec wish \"$0\" -- \"$@\"\n+exec wish < \"$0\" -- \"$@\"\n \n # Copyright © 2005-2014 Paul Mackerras.  All rights reserved.\n # This program is free software; it may be used, copied, modified\n-- \n1.8.5.2\n"}]}