<div dir="ltr">I agree with you Juan.<div>Even signal an exception or change/add the/a message to get a block to be evaluated in case of not having OSProcess (like at:ifAbsent:). </div><div><br></div><div>Cheers!</div><div>Hernan.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 24, 2023 at 10:28 AM Juan Vuletich via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Imran,<br>
<br>
I agree you identified a problem. But I don't like to interpret '~' as <br>
two different folders depending on the presence of OSProcess.<br>
<br>
I think that the correct behavior would be to give an error message if <br>
OSProcess is not present.<br>
<br>
What do others think?<br>
<br>
Thanks,<br>
<br>
On 7/24/2023 10:08 AM, Imran Rafique via Cuis-dev wrote:<br>
> Hello list,<br>
><br>
> I'm hesitant to call this a bugfix, as its quite possible (probable?)<br>
> that I'm going about this the wrong way (or I've grasped the wrong end<br>
> of the stick), but here goes:<br>
><br>
> Original behaviour:<br>
> '~/foo' asDirectoryEntry => <image_dir>/foo<br>
><br>
> Should be:<br>
> <user_home_dir>/foo<br>
><br>
> I think I understand the real issue: without OSProcess, there's no way<br>
> for the system to know what $HOME is. Perhaps<image_dir> is<br>
> considered as a reasonable fallback (in which case, disregard the rest<br>
> of this).<br>
><br>
> Details:<br>
> - the attached changeset is a manually-extracted portion of one of my<br>
> local packages (with just the code pertaining to this issue)<br>
> - it modifies FileIOAccessor>> absolutePathComponentsFor: so that it<br>
> behaves differently and correctly interprets '~' ONLY if OSProcess is<br>
> loaded.<br>
> - which means that DirectoryEntry would give different answers for the<br>
> same '~/whatever' depending on the state of the image. This is<br>
> probably bad practice on my part, but anyway, it was annoying me.<br>
><br>
><br>
> If this is a bogus fix, please excuse the noise to the list. Either<br>
> way, the learning experience is a blast (just starting to get the hang<br>
> of the debugger).<br>
><br>
> --<br>
> Regards,<br>
> Imran Sher Rafique<br>
<br>
<br>
-- <br>
Juan Vuletich<br>
<a href="http://cuis.st" rel="noreferrer" target="_blank">cuis.st</a><br>
<a href="http://github.com/jvuletich" rel="noreferrer" target="_blank">github.com/jvuletich</a><br>
<a href="http://researchgate.net/profile/Juan-Vuletich" rel="noreferrer" target="_blank">researchgate.net/profile/Juan-Vuletich</a><br>
<a href="http://independent.academia.edu/JuanVuletich" rel="noreferrer" target="_blank">independent.academia.edu/JuanVuletich</a><br>
<a href="http://patents.justia.com/inventor/juan-manuel-vuletich" rel="noreferrer" target="_blank">patents.justia.com/inventor/juan-manuel-vuletich</a><br>
<a href="http://linkedin.com/in/juan-vuletich-75611b3" rel="noreferrer" target="_blank">linkedin.com/in/juan-vuletich-75611b3</a><br>
<a href="http://twitter.com/JuanVuletich" rel="noreferrer" target="_blank">twitter.com/JuanVuletich</a><br>
<br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal"><span style="font-weight:bold">Hernán Wilkinson</span><br>Agile Software Development, Teaching & Coaching</span></font></span></span></strong></span></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Phone: +54-011</span></font></span></span></strong></span><font face="tahoma, sans-serif" size="2">-4893-2057</font></div><div style="font-size:12.8px"><strong style="font-family:tahoma,sans-serif;font-size:xx-small"><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Twitter: @HernanWilkinson</span></font></span></span></strong></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">site: <a href="http://www.10pines.com/" style="color:rgb(17,65,112)" target="_blank">http://www.10Pines.com</a></span></font></span></span></strong></span></div><div style="font-size:12.8px"><font face="tahoma, sans-serif"><span style="border-collapse:collapse">Address: Alem 896</span></font>, Floor 6, Buenos Aires, Argentina</div></div></div></div></div></div></div></div>