<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Dear Ashish,<br>
<br>
ok, things start getting clearer.<br>
<br>
Filesystem paths are internally converted to absolute paths when
needed. The point is that the "need" is recognized based on the
starting character of the path being "/" or not. Therefore, a path like
"$HOME/my_dir/fs" would improperly be expanded as
"/path/to/current/directory/$HOME/my_dir/fs" because it starts with a
"$" instead of a "/". A quick workaround, as you have found on your
own, is to force the path to be absolute. Therefore,
"/$HOME/mystuff/my-modified-netkit-fs" would also work well in your
case.<br>
<br>
Regards,<br>
Massimo.<br>
<br>
<br>
<br>
</tt><br>
On 06/11/2010 05:59 PM, Ashish Agarwal wrote:
<blockquote
 cite="mid:AANLkTik94PjzXFLb6VLvS9hIuIE4DZua3KSssxi05fF-@mail.gmail.com"
 type="cite">We discovered that the following works without using the
patch:
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp;pc1[model-fs]=/./$HOME/mystuff/my-modified-netkit-fs<br>
  <br>
  </div>
  <div>The /. is required for some reason, but not for the kernel's
path. The following is okay:</div>
  <div><br>
  </div>
  <div>&nbsp;&nbsp; &nbsp;pc1[kernel]=$HOME/mystuff/my-modified-kernel<br>
  <br>
  </div>
  <div><br>
  <br>
  <div class="gmail_quote">On Fri, Jun 11, 2010 at 5:07 AM, Massimo
Rimondini <span dir="ltr">&lt;<a moz-do-not-send="true"
 href="mailto:rimondin@dia.uniroma3.it">rimondin@dia.uniroma3.it</a>&gt;</span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">
    <tt>Dear Ashish,<br>
    <br>
there is no way to apply shell expansion to the contents of lab.conf
using standard Netkit tools, but you can by applying the attached patch
to your $NETKIT_HOME/bin/lcommon.<br>
    <br>
Please notice that, due to the way the shell performs expansion, the
tilde will still fail to be correctedly interpreted when used in
conjunction with long command-line options. Therefore, in order to
obtain what you need, you would use instead:<br>
    <br>
    <blockquote type="cite"><tt>pc1[m]=~/mystuff/my-modified-netkit-fs</tt></blockquote>
    <br>
    <br>
or:<br>
    <br>
    <blockquote type="cite"><tt>pc1[model-fs]=</tt><tt>$HOME/mystuff/my-modified-netkit-fs</tt></blockquote>
    </tt><br>
    <tt>Regards,<br>
Massimo.<br>
    <br>
    </tt>
    <div>
    <div class="h5"><br>
On 06/10/2010 08:49 PM, Ashish Agarwal wrote:
    </div>
    </div>
    <blockquote type="cite">
      <div>
      <div class="h5">I'd like to include the following line in a
lab.conf file:
      <div><br>
      </div>
      <div>pc1[model-fs]=~/mystuff/my-modified-netkit-fs</div>
      <div><br>
      </div>
      <div>However, it appears that Netkit does not expand the tilde.
The
above line works fine if I instead write the fully expanded path. Is
there anyway to get the above to work?</div>
      <div><br>
      </div>
      <div>Thank you.</div>
      <div><br>
      </div>
      </div>
      </div>
      <pre><fieldset></fieldset>
_______________________________________________
Netkit.users mailing list
<a moz-do-not-send="true"
 href="mailto:Netkit.users@list.dia.uniroma3.it" target="_blank">Netkit.users@list.dia.uniroma3.it</a>
<a moz-do-not-send="true"
 href="http://list.dia.uniroma3.it/mailman/listinfo/netkit.users"
 target="_blank">http://list.dia.uniroma3.it/mailman/listinfo/netkit.users</a>
  </pre>
    </blockquote>
    </div>
    <br>
_______________________________________________<br>
Netkit.users mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:Netkit.users@list.dia.uniroma3.it">Netkit.users@list.dia.uniroma3.it</a><br>
    <a moz-do-not-send="true"
 href="http://list.dia.uniroma3.it/mailman/listinfo/netkit.users"
 target="_blank">http://list.dia.uniroma3.it/mailman/listinfo/netkit.users</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Netkit.users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Netkit.users@list.dia.uniroma3.it">Netkit.users@list.dia.uniroma3.it</a>
<a class="moz-txt-link-freetext" href="http://list.dia.uniroma3.it/mailman/listinfo/netkit.users">http://list.dia.uniroma3.it/mailman/listinfo/netkit.users</a>
  </pre>
</blockquote>
</body>
</html>