<?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>Parolski.com &#187; path</title>
	<atom:link href="http://www.parolski.com/tag/path/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.parolski.com</link>
	<description>Faith, Solaris, and Chicken Korma, by Anton Parol</description>
	<lastBuildDate>Fri, 14 Oct 2011 11:16:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>cd into, or make a directory beginning with a leading &#8220;-&#8221;</title>
		<link>http://www.parolski.com/2008/04/12/cd-into-or-make-a-directory-beginning-with-a-leading/</link>
		<comments>http://www.parolski.com/2008/04/12/cd-into-or-make-a-directory-beginning-with-a-leading/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 19:25:28 +0000</pubDate>
		<dc:creator>Anton Parol</dc:creator>
				<category><![CDATA[solaris]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://www.parolski.com/2008/04/12/cd-into-or-make-a-directory-beginning-with-a-leading/</guid>
		<description><![CDATA[Having ZFS and SAMBA on the home machine is great. It was simple to set up a share and offer it out to my house mates for them to backup their dissertation work on. With ZFS compressing the files, some of my file systems are getting a 1.6x ratio (60% disk space for free compared [...]]]></description>
			<content:encoded><![CDATA[<p>Having <a href="http://en.wikipedia.org/wiki/ZFS">ZFS</a> and <a href="http://en.wikipedia.org/wiki/Samba_%28software%29">SAMBA</a> on the home machine is great. It was simple to <a href="http://blogs.sun.com/timthomas/entry/enabling_and_configuring_samba_as">set up a share</a> and offer it out to my house mates for them to backup their dissertation work on. With ZFS compressing the files, some of my file systems are getting a 1.6x ratio (60% disk space for free compared with a non-compressing file system)</p>
<p>The interesting bit comes with file permissions and Windows file <a href="http://www.xxcopy.com/xxcopy06.htm">attributes</a> which aren&#8217;t quite the same, in fact, not at all. The attributes get mapped onto the unix file permissions in an interesting way, and you&#8217;ll need to keep that in mind when ls -l ing around a shared directory.</p>
<p>Meanwhile, there was a directory named &#8220;&#8212;-FILES&#8212;-&#8221; on the share. Trying to use</p>
<pre>cd "----FILES----"</pre>
<p>doesn&#8217;t quite work! Despite quoting the directory name, cd still tries to take some of those dashes as a switch. I&#8217;m not sure if theres a way around this using the relative path, but there is a different workaround: simply use the <a href="http://en.wikipedia.org/wiki/Path_(computing)">absolute path</a>, instead of a relative one to get you there, eg:</p>
<pre>cd /mydir/----FILES..../</pre>
<p>To make a directory with leading dashes, you&#8217;ll need to specify the full pathname, or use something like this to make the process less painful:</p>
<pre>mkdir `pwd`/--mydir--</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.parolski.com/2008/04/12/cd-into-or-make-a-directory-beginning-with-a-leading/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

