<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>betweenGo &#187; Cygwin</title>
	<atom:link href="http://betweengo.com/category/os/unix/cygwin/feed/" rel="self" type="application/rss+xml" />
	<link>http://betweengo.com</link>
	<description>We make Ruby on Rails easy.  We make ATG easy.</description>
	<lastBuildDate>Tue, 06 Dec 2011 14:03:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cygwin 1.7.x, mounts and /etc/fstab</title>
		<link>http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/</link>
		<comments>http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 15:17:12 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/</guid>
		<description><![CDATA[Sunrise Heron Silhouette by Brandon Godfrey A few days I installed Cygwin on a new laptop.  I saw the warnings that Cygwin 1.7.x is new but I chose to ignore it for now. I soon noticed that Cygwin was not remembering my mounts.  After reading this on the Cygwin front page I realized I needed [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2009/01/29/moving-your-cygwin-installation/' rel='bookmark' title='Moving Your Cygwin Installation'>Moving Your Cygwin Installation</a></li>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
<li><a href='http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/' rel='bookmark' title='Unable to start Cygwin shell from Windows command prompt'>Unable to start Cygwin shell from Windows command prompt</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p align="center"><a href="http://www.flickr.com/photos/vicfan/3915841773/"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="Sunrise Heron Silhouette on Flickr" src="http://farm3.static.flickr.com/2521/3915841773_a960e4904e.jpg" alt="Sunrise Heron Silhouette on Flickr" /></a><a title="Sunrise Heron Silhouette on Flickr" href="http://www.flickr.com/photos/vicfan/3915841773/">Sunrise Heron Silhouette</a> by <a title="Flickr: Brandon Godfrey's Photostream" href="http://www.flickr.com/photos/vicfan/">Brandon Godfrey</a></p>
<p>A few days I installed Cygwin on a new laptop.  I saw the warnings that Cygwin 1.7.x is new but I chose to ignore it for now.</p>
<p>I soon noticed that Cygwin was not remembering my mounts.  After reading this on the <a title="Cygwin Information and Installation" href="http://www.cygwin.com/">Cygwin front page</a> I realized I needed to do some more research.</p>
<blockquote><p>… the mount point storage has been moved out of the registry into files. User mount points are <strong>NOT</strong> copied into the new user-specific /etc/fstab.d/$USER file. Rather, every user has to call the <strong>/bin/copy-user-registry-fstab</strong> shell script once after the update.</p></blockquote>
<p>Next I looked at the <tt>/etc/fstab</tt> file which pointed me to the <a title="The Cygwin Mount Table - Chapter 3. Using Cygwin" href="http://cygwin.com/cygwin-ug-net/using.html#mount-table">Cygwin Mount Table documentation</a>.  Using this documentation I did the following steps so that my mounts are always remembered.</p>
<ol>
<li>Manually mounted the C: drive.
<pre>$ mount c: /c</pre>
</li>
<li>Ran mount to determine what to add to my <tt>/etc/fstab</tt>.
<pre>$ mount
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /c type ntfs (binary,user)</pre>
</li>
<li>Based on the output of mount I added this line to my <tt>/etc/fstab</tt>.
<pre>C: /c ntfs binary,user</pre>
</li>
<li>Closed the Cygwin shell, opened a new one and verified the C: drive was properly mounted.</li>
</ol>
<p><strong>Update 06-15-2010:</strong> I should have just followed Cygwin&#8217;s directions and ran /bin/copy-user-registry-fstab.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2010%2F02%2F08%2Fcygwin-1-7-x-mounts-and-etcfstab%2F&amp;title=Cygwin%201.7.x%2C%20mounts%20and%20%2Fetc%2Ffstab" id="wpa2a_2"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2009/01/29/moving-your-cygwin-installation/' rel='bookmark' title='Moving Your Cygwin Installation'>Moving Your Cygwin Installation</a></li>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
<li><a href='http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/' rel='bookmark' title='Unable to start Cygwin shell from Windows command prompt'>Unable to start Cygwin shell from Windows command prompt</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving Your Cygwin Installation</title>
		<link>http://betweengo.com/2009/01/29/moving-your-cygwin-installation/</link>
		<comments>http://betweengo.com/2009/01/29/moving-your-cygwin-installation/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 00:15:04 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Cygwin]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=413</guid>
		<description><![CDATA[I was running out of space on one drive so I decided to move my Cygwin installation to another drive. It turned out not to be too difficult thanks to this article Hints for Setting up Cygwin.&#160; This is how I did it though there might be a simpler way. In a bash shell save [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/' rel='bookmark' title='Cygwin 1.7.x, mounts and /etc/fstab'>Cygwin 1.7.x, mounts and /etc/fstab</a></li>
<li><a href='http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/' rel='bookmark' title='Unable to start Cygwin shell from Windows command prompt'>Unable to start Cygwin shell from Windows command prompt</a></li>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I was running out of space on one drive so I decided to move my Cygwin installation to another drive.</p>
<p>It turned out not to be too difficult thanks to this article <a href="http://www-cdf.fnal.gov/~cplager/cygwin.html">Hints for Setting up Cygwin</a>.&#160; This is how I did it though there might be a simpler way.</p>
<ol>
<li>In a bash shell save the mount points as a batch script.
<pre>$ mount -m &gt; /c/cygwin-mount.bat</pre>
</li>
<li>Close the bash shell. </li>
<li>Move the cygwin folder from one drive to the other.&#160; In my case that was from C:\cygwin to D:\cygwin. </li>
<li>Update all the short cuts for Cygwin in the Start Menu to use the new drive. </li>
<li>Update&#160; cygwin.bat, which is in the top level of your Cygwin installation, to use the new drive. </li>
<li>Update your Windows environment variable to use the new Cygwin bin path, e.g. D:\cygwin\bin. </li>
<li>Open a DOS cmd prompt.&#160; Run umount to unmount the old Cygwin mounts.
<pre>&gt; umount</pre>
</li>
<li>Next run the mount points script.
<pre>&gt; C:\cygwin-mount.bat</pre>
</li>
<li>Open a Cygwin bash shell to make sure everything is working correctly.</li>
</ol>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2009%2F01%2F29%2Fmoving-your-cygwin-installation%2F&amp;title=Moving%20Your%20Cygwin%20Installation" id="wpa2a_4"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2010/02/08/cygwin-1-7-x-mounts-and-etcfstab/' rel='bookmark' title='Cygwin 1.7.x, mounts and /etc/fstab'>Cygwin 1.7.x, mounts and /etc/fstab</a></li>
<li><a href='http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/' rel='bookmark' title='Unable to start Cygwin shell from Windows command prompt'>Unable to start Cygwin shell from Windows command prompt</a></li>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2009/01/29/moving-your-cygwin-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cygwin Bash Scripts and Java</title>
		<link>http://betweengo.com/2008/08/08/cygwin-bash-scripts-and-java/</link>
		<comments>http://betweengo.com/2008/08/08/cygwin-bash-scripts-and-java/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 00:47:36 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=268</guid>
		<description><![CDATA[Running Java scripts in Cygwin bash scripts becomes a little tricky because you want to treat most paths in Cygwin as normal UNIX paths but Java expects DOS paths.  Therefore to get around this you can use the mixed option for cygpath. For example: if [ -e /usr/bin/cygpath ] &#124;&#124; [ -e /bin/cygpath ] then [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
<li><a href='http://betweengo.com/2008/05/09/maven-assembly-shell-scripts-unix-lf/' rel='bookmark' title='Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s'>Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s</a></li>
<li><a href='http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/' rel='bookmark' title='Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin'>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Running Java scripts in Cygwin bash scripts becomes a little tricky because you want to treat most paths in Cygwin as normal UNIX paths but Java expects DOS paths.  Therefore to get around this you can use the mixed option for cygpath.</p>
<p>For example:</p>
<pre>if [ -e /usr/bin/cygpath ] || [ -e /bin/cygpath ]
then
  export FOO=`cygpath --mixed "e:\work\betweengo/target/foo"`
else
  export FOO="e:\work\betweengo/target/foo"
fi</pre>
<p>The result on Cygwin is that FOO will be set to &#8220;e:/work/betweengo/target/foo&#8221; which will work both in DOS and UNIX.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2008%2F08%2F08%2Fcygwin-bash-scripts-and-java%2F&amp;title=Cygwin%20Bash%20Scripts%20and%20Java" id="wpa2a_6"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
<li><a href='http://betweengo.com/2008/05/09/maven-assembly-shell-scripts-unix-lf/' rel='bookmark' title='Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s'>Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s</a></li>
<li><a href='http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/' rel='bookmark' title='Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin'>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/08/08/cygwin-bash-scripts-and-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s</title>
		<link>http://betweengo.com/2008/05/09/maven-assembly-shell-scripts-unix-lf/</link>
		<comments>http://betweengo.com/2008/05/09/maven-assembly-shell-scripts-unix-lf/#comments</comments>
		<pubDate>Fri, 09 May 2008 19:52:19 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=180</guid>
		<description><![CDATA[In a previous post, Shell Scripts with Windows LF’s Fail in Latest Cygwin, I wrote about how to use Perforce to check out all files in UNIX format. However if you use Eclipse then this solution will not work because Eclipse always inserts Windows LF&#8217;s in any line you insert into a file leading to [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/' rel='bookmark' title='Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin'>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</a></li>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
<li><a href='http://betweengo.com/2008/07/18/maven-integration-for-eclipse/' rel='bookmark' title='Maven Integration for Eclipse'>Maven Integration for Eclipse</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In a previous post, <a title="Shell Scripts with Windows LF’s Fail in Latest Cygwin" href="http://betweengo.com/cygwin/2008/05/05/scripts-with-win-lfs-fail-cygwin/">Shell Scripts with Windows LF’s Fail in Latest Cygwin</a>, I wrote about how to use Perforce to check out all files in UNIX format.  However if you use Eclipse then this solution will not work because Eclipse always inserts Windows LF&#8217;s in any line you insert into a file leading to a mess with files that have both UNIX and Windows LF&#8217;s.</p>
<p>However if you happen to use Maven to generate / copy your shell scripts to their target directories you can take advantage of the <a title="Maven Assembly Plugin - file" href="http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_file">lineEnding</a> property in the <a title="Maven Assembly Plugin" href="http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html">Assembly Director</a>.  If you specify the lineEnding property to be &#8220;unix&#8221; then the outputted shell scripts will be in UNIX format.  For example:</p>
<pre>&lt;file&gt;
  &lt;source&gt;src/main/scripts/foo.sh&lt;/source&gt;
  &lt;outputDirectory&gt;bin&lt;/outputDirectory&gt;
  &lt;lineEnding&gt;unix&lt;/lineEnding&gt;
&lt;/file&gt;</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2008%2F05%2F09%2Fmaven-assembly-shell-scripts-unix-lf%2F&amp;title=Maven%20Assembly%20Convert%20Shell%20Scripts%20to%20use%20UNIX%20LF%26%238217%3Bs" id="wpa2a_8"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/' rel='bookmark' title='Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin'>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</a></li>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
<li><a href='http://betweengo.com/2008/07/18/maven-integration-for-eclipse/' rel='bookmark' title='Maven Integration for Eclipse'>Maven Integration for Eclipse</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/05/09/maven-assembly-shell-scripts-unix-lf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</title>
		<link>http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/</link>
		<comments>http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/#comments</comments>
		<pubDate>Mon, 05 May 2008 20:22:18 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Perforce]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=178</guid>
		<description><![CDATA[I am not sure when this happened but now in Cygwin shell scripts with Windows LF&#8217;s (the infamous control M&#8217;s) fail, i.e. Cygwin fails to run them because it will complain about the &#8216;\r&#8217; character. The simple way to fix this is to change your scripts to use UNIX LF&#8217;s by calling dos2unix or &#8220;conv [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2008/05/09/maven-assembly-shell-scripts-unix-lf/' rel='bookmark' title='Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s'>Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s</a></li>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
<li><a href='http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/' rel='bookmark' title='Unable to start Cygwin shell from Windows command prompt'>Unable to start Cygwin shell from Windows command prompt</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I am not sure when this happened but now in Cygwin shell scripts with Windows LF&#8217;s (the infamous control M&#8217;s) fail, i.e. Cygwin fails to run them because it will complain about the &#8216;\r&#8217; character.</p>
<p>The simple way to fix this is to change your scripts to use UNIX LF&#8217;s by calling dos2unix or &#8220;conv -U&#8221;.</p>
<p>If you are using Perforce on Windows and seeing this problem then you can change your client to use &#8220;share&#8221; for the LineEnd option.  Since Perforce stores all its text files in UNIX format on the server then it will write them out locally on your Windows machine in UNIX format.  See the Perforce Knowledge Base article, <a title="Perforce Knowledge Base: CR/LF Issues and Text Line-endings" href="http://kb.perforce.com/P4dServerReference/CrlfIssuesAn..LineEndings">CR/LF Issues and Text Line-endings</a>.  Fortunately Windows batch scripts with UNIX LF’s still run properly.</p>
<p>Note that when you make this change from the &#8220;local&#8221; LineEnd option then text files you already checked out will have the Windows LF&#8217;s.  You will need to do a p4 sync -f on the files you want updated to have UNIX LF&#8217;s.  Also when do you a p4 diff on your opened text files it will look like the whole file has changed.  Again this is because of line feed issues.  Doing a dos2unix on those opened text files will solve the problem.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2008%2F05%2F05%2Fscripts-with-win-lfs-fail-cygwin%2F&amp;title=Shell%20Scripts%20with%20Windows%20LF%26%238217%3Bs%20Fail%20in%20Latest%20Cygwin" id="wpa2a_10"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2008/05/09/maven-assembly-shell-scripts-unix-lf/' rel='bookmark' title='Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s'>Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s</a></li>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
<li><a href='http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/' rel='bookmark' title='Unable to start Cygwin shell from Windows command prompt'>Unable to start Cygwin shell from Windows command prompt</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting up cygwin users and groups</title>
		<link>http://betweengo.com/2008/04/16/setting-up-cygwin-users-and-groups/</link>
		<comments>http://betweengo.com/2008/04/16/setting-up-cygwin-users-and-groups/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 20:37:11 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Cygwin]]></category>

		<guid isPermaLink="false">http://betweengo.com/?p=170</guid>
		<description><![CDATA[Whenever I start my bash shell I get this annoying message. Your group is currently &#8220;mkgroup&#8221;.  This indicates that the /etc/group (and possibly /etc/passwd) files should be rebuilt. See the man pages for mkpasswd and mkgroup then, for example, run mkpasswd -l [-d] &#62; /etc/passwd mkgroup  -l [-d] &#62; /etc/group Note that the -d switch [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2009/07/31/how-to-add-products-to-categories-using-content-groups/' rel='bookmark' title='How to Add Products to Categories using Content Groups'>How to Add Products to Categories using Content Groups</a></li>
<li><a href='http://betweengo.com/2005/10/24/subversion-on-dreamhost/' rel='bookmark' title='Subversion on Dreamhost'>Subversion on Dreamhost</a></li>
<li><a href='http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/' rel='bookmark' title='Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin'>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Whenever I start my bash shell I get this annoying message.</p>
<blockquote><p>Your group is currently &#8220;mkgroup&#8221;.  This indicates that<br />
the /etc/group (and possibly /etc/passwd) files should be rebuilt.<br />
See the man pages for mkpasswd and mkgroup then, for example, run<br />
mkpasswd -l [-d] &gt; /etc/passwd<br />
mkgroup  -l [-d] &gt; /etc/group<br />
Note that the -d switch is necessary for domain users.</p></blockquote>
<p>I tried doing what the documentation but I still kept getting that message.  I then tried one of the suggestions in the comments of this post, <a href="http://sinewalker.wordpress.com/2006/10/27/cygwin-users-and-groups/">Cygwin users and groups « sinewalker</a>.</p>
<pre>$ mkpasswd -l -p /home/ -c &gt; /etc/passwd</pre>
<pre>$ mkgroup -l -c&gt; /etc/group</pre>
<p>I then got this message.</p>
<blockquote><p>Copying skeleton files.<br />
These files are for the user to personalise<br />
their cygwin experience.</p>
<p>These will never be overwritten.</p>
<p>`./.bashrc&#8217; -&gt; `/home/fkim//.bashrc&#8217;<br />
`./.bash_profile&#8217; -&gt; `/home/fkim//.bash_profile&#8217;<br />
`./.inputrc&#8217; -&gt; `/home/fkim//.inputrc&#8217;<br />
Your group name is currently &#8220;mkgroup_l_d&#8221;. This indicates that not<br />
all domain users and groups are listed in the /etc/passwd and<br />
/etc/group files.<br />
See the man pages for mkpasswd and mkgroup then, for example, run<br />
mkpasswd -l -d &gt; /etc/passwd<br />
mkgroup  -l -d &gt; /etc/group</p>
<p>This message is only displayed once (unless you recreate /etc/group)<br />
and can be safely ignored.</p></blockquote>
<p>I am not sure what it means but it was only displayed once.  Now that I am not seeing it anymore I&#8217;m happy. <img src='http://betweengo.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2008%2F04%2F16%2Fsetting-up-cygwin-users-and-groups%2F&amp;title=Setting%20up%20cygwin%20users%20and%20groups" id="wpa2a_12"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2009/07/31/how-to-add-products-to-categories-using-content-groups/' rel='bookmark' title='How to Add Products to Categories using Content Groups'>How to Add Products to Categories using Content Groups</a></li>
<li><a href='http://betweengo.com/2005/10/24/subversion-on-dreamhost/' rel='bookmark' title='Subversion on Dreamhost'>Subversion on Dreamhost</a></li>
<li><a href='http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/' rel='bookmark' title='Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin'>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/04/16/setting-up-cygwin-users-and-groups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perforce and Cygwin</title>
		<link>http://betweengo.com/2008/01/03/perforce-and-cygwin/</link>
		<comments>http://betweengo.com/2008/01/03/perforce-and-cygwin/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 22:54:31 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Perforce]]></category>

		<guid isPermaLink="false">http://betweengo.com/uncategorized/2008/01/03/perforce-and-cygwin/</guid>
		<description><![CDATA[To get Perforce to work with Cygwin is not too difficult. One just has to make an alias for p4 like this (thanks to this excellent Perforce FAQ). if [ -e /bin/cygpath ]; then alias p4='p4 -d `cygpath -w $PWD`' fi This alias works all the time except I think when you are in a [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2008/10/08/perforce-adding-a-directory-tree/' rel='bookmark' title='Perforce Adding a Directory Tree'>Perforce Adding a Directory Tree</a></li>
<li><a href='http://betweengo.com/2007/12/23/turning-off-perforce-windows-explorer-integration/' rel='bookmark' title='Turning off Perforce Windows Explorer Integration'>Turning off Perforce Windows Explorer Integration</a></li>
<li><a href='http://betweengo.com/2008/08/08/cygwin-bash-scripts-and-java/' rel='bookmark' title='Cygwin Bash Scripts and Java'>Cygwin Bash Scripts and Java</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>To get Perforce to work with Cygwin is not too difficult.  One just has to make an alias for p4 like this (thanks to this excellent <a href="http://public.perforce.com:8080/@md=d&amp;cd=//guest/brad_barber/road/web/xml/&amp;c=CSk@//guest/brad_barber/road/web/xml/p4-faq.xml#p4cygwin" title="Perforce FAQ - How to avoid problems with cygwin">Perforce FAQ</a>).</p>
<pre>
if [ -e /bin/cygpath ]; then
  alias p4='p4 -d `cygpath -w $PWD`'
fi
</pre>
<p>This alias works all the time except I think when you are in a directory you accessed via a link.</p>
<p>Note you don&#8217;t need to go such lengths as described in this <a href="http://maillist.perforce.com/pipermail/perforce-user/2000-September/004717.html" title="[p4] Can p4 get along with Win2K + Cygwin B21?">post</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2008%2F01%2F03%2Fperforce-and-cygwin%2F&amp;title=Perforce%20and%20Cygwin" id="wpa2a_14"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2008/10/08/perforce-adding-a-directory-tree/' rel='bookmark' title='Perforce Adding a Directory Tree'>Perforce Adding a Directory Tree</a></li>
<li><a href='http://betweengo.com/2007/12/23/turning-off-perforce-windows-explorer-integration/' rel='bookmark' title='Turning off Perforce Windows Explorer Integration'>Turning off Perforce Windows Explorer Integration</a></li>
<li><a href='http://betweengo.com/2008/08/08/cygwin-bash-scripts-and-java/' rel='bookmark' title='Cygwin Bash Scripts and Java'>Cygwin Bash Scripts and Java</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2008/01/03/perforce-and-cygwin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cygwin Bash cannot execute DOS formatted scripts</title>
		<link>http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/</link>
		<comments>http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 19:15:48 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://betweengo.com/windows/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/</guid>
		<description><![CDATA[As of bash 3.2.9-10, bash no longer executes DOS formatted scripts as detailed in this announcement. I understand the reasoning for this is that: cygwin is supposed to mimic Linux, not Windows it is faster to assume that the scripts are in UNIX format To get around this restriction I did what was recommended in [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2008/08/08/cygwin-bash-scripts-and-java/' rel='bookmark' title='Cygwin Bash Scripts and Java'>Cygwin Bash Scripts and Java</a></li>
<li><a href='http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/' rel='bookmark' title='Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin'>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</a></li>
<li><a href='http://betweengo.com/2008/05/09/maven-assembly-shell-scripts-unix-lf/' rel='bookmark' title='Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s'>Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>As of bash 3.2.9-10, bash no longer executes DOS formatted scripts as detailed in this <a href="http://cygwin.com/ml/cygwin-announce/2006-12/msg00026.html">announcement</a>.  I understand the reasoning for this is that:</p>
<ol>
<li>cygwin is supposed to mimic Linux, not Windows</li>
<li>it is faster to assume that the scripts are in UNIX format</li>
</ol>
<p>To get around this restriction I did what was recommended in this <a href="http://db.bitkeeper.com/cgi-bin/view.cgi?id=2006-12-01-001">bug report</a>, i.e. I created a Windows user environment variable named &#8220;SHELLOPTS&#8221; with the value &#8220;igncr&#8221;.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2007%2F03%2F07%2Fcygwin-bash-cannot-execute-dos-formatted-scripts%2F&amp;title=Cygwin%20Bash%20cannot%20execute%20DOS%20formatted%20scripts" id="wpa2a_16"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2008/08/08/cygwin-bash-scripts-and-java/' rel='bookmark' title='Cygwin Bash Scripts and Java'>Cygwin Bash Scripts and Java</a></li>
<li><a href='http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/' rel='bookmark' title='Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin'>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</a></li>
<li><a href='http://betweengo.com/2008/05/09/maven-assembly-shell-scripts-unix-lf/' rel='bookmark' title='Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s'>Maven Assembly Convert Shell Scripts to use UNIX LF&#8217;s</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to start Cygwin shell from Windows command prompt</title>
		<link>http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/</link>
		<comments>http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 19:00:09 +0000</pubDate>
		<dc:creator>Frank Kim</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://betweengo.com/miscellaneous/2007/03/07/unable-to-start-sh-from-windows-command-prompt/</guid>
		<description><![CDATA[After installing Cygwin when I tried to start the shell from a Windows command prompt by entering the &#8220;sh&#8221; command a window would pop up with this error. The procedure entry point rl_getenv_hook could not be located in the dynamic link library cygreadline6.dll. After seeing this error I would have to manually kill the sh [...]
Related posts:<ol>
<li><a href='http://betweengo.com/2009/01/29/moving-your-cygwin-installation/' rel='bookmark' title='Moving Your Cygwin Installation'>Moving Your Cygwin Installation</a></li>
<li><a href='http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/' rel='bookmark' title='Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin'>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</a></li>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After installing Cygwin when I tried to start the shell from a Windows command prompt by entering the &#8220;sh&#8221; command a window would pop up with this error.</p>
<blockquote><p>The procedure entry point rl_getenv_hook could not be located in the dynamic link library cygreadline6.dll.</p></blockquote>
<p>After seeing this error I would have to manually kill the sh process using the Windows Task Manager.</p>
<p>There was a <a href="http://www.cygwin.com/ml/cygwin/2006-12/msg00289.html">thread</a> about this on the Cygwin mailing list.  I did what was suggested and discovered that bin/sh.exe and bin/bash.exe were exactly the same.  Yet for some reason when I ran bash from the Windows command prompt I did not get this error.</p>
<p>I then tried rerunning the Cygwin installer.  Even though nothing was installed that seemed to solve the problem, i.e. I was able to run sh from the Windows command prompt.  This was possibly because the bash postinstall script was run correctly.</p>
<p>Update: After reboot I am experiencing the same problem again.  Aargh! <img src='http://betweengo.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbetweengo.com%2F2007%2F03%2F07%2Funable-to-start-sh-from-windows-command-prompt%2F&amp;title=Unable%20to%20start%20Cygwin%20shell%20from%20Windows%20command%20prompt" id="wpa2a_18"><img src="http://betweengo.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>Related posts:<ol>
<li><a href='http://betweengo.com/2009/01/29/moving-your-cygwin-installation/' rel='bookmark' title='Moving Your Cygwin Installation'>Moving Your Cygwin Installation</a></li>
<li><a href='http://betweengo.com/2008/05/05/scripts-with-win-lfs-fail-cygwin/' rel='bookmark' title='Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin'>Shell Scripts with Windows LF&#8217;s Fail in Latest Cygwin</a></li>
<li><a href='http://betweengo.com/2007/03/07/cygwin-bash-cannot-execute-dos-formatted-scripts/' rel='bookmark' title='Cygwin Bash cannot execute DOS formatted scripts'>Cygwin Bash cannot execute DOS formatted scripts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://betweengo.com/2007/03/07/unable-to-start-sh-from-windows-command-prompt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
