{"action":"opened","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/252","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/252/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/252/events","html_url":"https://github.com/git-for-windows/git/issues/252","id":96558718,"number":252,"title":"Where to post issues with bash script?","user":{"login":"toninlg","id":7334970,"avatar_url":"https://avatars.githubusercontent.com/u/7334970?v=3","gravatar_id":"","url":"https://api.github.com/users/toninlg","html_url":"https://github.com/toninlg","followers_url":"https://api.github.com/users/toninlg/followers","following_url":"https://api.github.com/users/toninlg/following{/other_user}","gists_url":"https://api.github.com/users/toninlg/gists{/gist_id}","starred_url":"https://api.github.com/users/toninlg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toninlg/subscriptions","organizations_url":"https://api.github.com/users/toninlg/orgs","repos_url":"https://api.github.com/users/toninlg/repos","events_url":"https://api.github.com/users/toninlg/events{/privacy}","received_events_url":"https://api.github.com/users/toninlg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-22T12:35:58Z","updated_at":"2015-07-22T12:35:58Z","closed_at":null,"body":"Hi,\r\nI have an issue with a bash script under git-for-windows, where should I post this?\r\n\r\nThe issue is the following:\r\nI write an here doc to a file in a script and after it is generated, I use unix2dos to convert this file to CR+LF line endings.\r\n```\r\ncat <<EOF > $GITROOT/version_s.h\r\n...\r\nEOF\r\nif [[ $? -eq 0 ]]; then\r\n  unix2dos \"$GITROOT/version_s.h\"\r\nfi\r\n```\r\nSometimes it works but most of the time it does not work. Message is:\r\n>unix2dos: problems renaming 'D:/path/d2utmpDpOVbm' to 'D:/path/version_s.h': Device or resource busy\r\n          output file remains in 'D:/path/d2utmpDpOVbm'\r\n\r\nIf I add a sleep, it always works and under Linux, a similar script seems to always work.\r\n\r\nThank you."}}