<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/loader/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/loader/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 19 Apr 2017 13:42:59 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/loader/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>#1 loader_flag documentation is copy/paste of load_addpath</title><link>https://sourceforge.net/p/loader/bugs/1/?limit=25#7874</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; v1.0_(example)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">konsolebox</dc:creator><pubDate>Wed, 19 Apr 2017 13:42:59 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net4c27fd7c6a3065c148e9aaf77acfc273ee8b90c3</guid></item><item><title>#2 * and ? are valid infilenames, contrary to doc</title><link>https://sourceforge.net/p/loader/bugs/2/?limit=25#40eb</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; v1.0_(example)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">konsolebox</dc:creator><pubDate>Wed, 19 Apr 2017 13:42:08 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net9c836dd6d338e4b6fe8f597ac1d9edb9506bcf2b</guid></item><item><title>#3 Compiler fails looking for wrong file name with extended include</title><link>https://sourceforge.net/p/loader/bugs/3/?limit=25#df2a</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">konsolebox</dc:creator><pubDate>Wed, 19 Apr 2017 13:40:33 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net96a424ad05cc0d9c44583119f978c1b2f5fe5059</guid></item><item><title>#3 Compiler fails looking for wrong file name with extended include</title><link>https://sourceforge.net/p/loader/bugs/3/?limit=25#43ba</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks, it is sorted. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eser eser</dc:creator><pubDate>Mon, 17 Apr 2017 12:51:38 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net68b1a64ab84b774f371aea2ff62d2f5eeb18e982</guid></item><item><title>#3 Compiler fails looking for wrong file name with extended include</title><link>https://sourceforge.net/p/loader/bugs/3/?limit=25#704a</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;So, I ended up just reverting the commit to avoid complicating the code.   I hope it works for you.   I staged a release for it that would automatically be published in 3 days.  Please tell me if you find more issues.&lt;/p&gt;
&lt;p&gt;Here's the new commit which includes the revert.  It's not much different compared to the one I just mentioned.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://sourceforge.net/p/loader/code/ci/789d76ff810f3be3976d7389acb793ba4b6d335a/tree/compiler.gawk"&gt;https://sourceforge.net/p/loader/code/ci/789d76ff810f3be3976d7389acb793ba4b6d335a/tree/compiler.gawk&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">konsolebox</dc:creator><pubDate>Sun, 16 Apr 2017 09:23:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netcda050f16234c96754c1fa39e820a2c1eb456067</guid></item><item><title>#3 Compiler fails looking for wrong file name with extended include</title><link>https://sourceforge.net/p/loader/bugs/3/?limit=25#b639</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, thanks for the report.&lt;/p&gt;
&lt;p&gt;This probably was caused by the use of the simpler function compiler_getcleanpath instead of compiler_getabspath.  The first function strips the trailing '/' for the "prefix".  I'll see how I could fix this right away.  If you're in a hurry, please consider using the version of the compiler before it used getcleanpath:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://sourceforge.net/p/loader/code/ci/2efde141546b8e7871ce121fb02d8c0e2e9bfc6b/tree/compiler.gawk?format=raw"&gt;https://sourceforge.net/p/loader/code/ci/2efde141546b8e7871ce121fb02d8c0e2e9bfc6b/tree/compiler.gawk?format=raw&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">konsolebox</dc:creator><pubDate>Sun, 16 Apr 2017 06:34:28 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net289b98bd40320d13e13b56d9a5ea8ae0173cfd84</guid></item><item><title>Compiler fails looking for wrong file name with extended include</title><link>https://sourceforge.net/p/loader/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a bash project which I want to bundle using compiler (directly using compilers branch).&lt;/p&gt;
&lt;p&gt;Structure is like this&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;src/
  bin/
    main
  lib/
    colors.sh
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;when I run compiler using&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;gawk -f modules/compiler/compiler.gawk -- -a src/lib -O -x src/bin/main
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I get the following error&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;compiler&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;truncate&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;compiler&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;main&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;obj&lt;/span&gt;
&lt;span class="n"&gt;compiler&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;truncate&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;compiler&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;calls&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;obj&lt;/span&gt;
&lt;span class="n"&gt;compiler&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;truncate&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;compiler&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;comp&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;obj&lt;/span&gt;
&lt;span class="n"&gt;compiler&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;walk&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="sr"&gt;/home/xxx/projects/myproject/src/bin/&lt;/span&gt;&lt;span class="n"&gt;main&lt;/span&gt;
&lt;span class="n"&gt;compiler&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;walk&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="sr"&gt;/home/xxx/projects/myproject/src/&lt;/span&gt;&lt;span class="n"&gt;libcolors&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;sh&lt;/span&gt;
&lt;span class="n"&gt;compiler&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="sr"&gt;/home/xxx/projects/myproject/src/bin/main: line 8: includex "lib/&lt;/span&gt;&lt;span class="o"&gt;*.&lt;/span&gt;&lt;span class="n"&gt;sh&lt;/span&gt;&lt;span class="err"&gt;"&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;Failure&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;File&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="n"&gt;not&lt;/span&gt; &lt;span class="n"&gt;readable&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="sr"&gt;/home/xxx/projects/myproject/src/&lt;/span&gt;&lt;span class="n"&gt;libcolors&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="na"&gt;sh&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Compiler seems to be using an invalid filel path. It should be &lt;code&gt;home/xxx/projects/myproject/src/lib/colors.sh&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The main script is as follows:&lt;/p&gt;
&lt;table class="codehilitetable"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="linenos"&gt;&lt;div class="linenodiv"&gt;&lt;pre&gt; 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23&lt;/pre&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt; -euo pipefail
&lt;span class="nv"&gt;IFS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;$'\n\t'&lt;/span&gt;

includex &lt;span class="s2"&gt;"*.sh"&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; main&lt;span class="o"&gt;()&lt;/span&gt; &lt;span class="o"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; -z &lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;1&lt;/span&gt;&lt;span class="k"&gt;:-&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Missing command"&lt;/span&gt;
    &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Usage: main &amp;lt;command&amp;gt; [&amp;lt;args&amp;gt;]"&lt;/span&gt;
  &lt;span class="k"&gt;else&lt;/span&gt;
    &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
  &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;span class="o"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[[&lt;/span&gt; &lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;BASH_SOURCE&lt;/span&gt;&lt;span class="p"&gt;[0]&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; !&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$0&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;]]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt;
  &lt;span class="nb"&gt;export&lt;/span&gt; -f main
&lt;span class="k"&gt;else&lt;/span&gt;
  main &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="p"&gt;@&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
  &lt;span class="nb"&gt;exit&lt;/span&gt; &lt;span class="nv"&gt;$?&lt;/span&gt;
&lt;span class="k"&gt;fi&lt;/span&gt;

&lt;span class="c"&gt;# vim:set ft=sh&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eser eser</dc:creator><pubDate>Sat, 15 Apr 2017 23:28:23 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net750d129e37f7ee4829e2f1912ab34d935fdc7919</guid></item><item><title>Compiler fails looking for wrong file name with extended include</title><link>https://sourceforge.net/p/loader/bugs/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 3 has been modified: Compiler fails looking for wrong file name with extended include&lt;br/&gt;
Edited By: konsolebox (konsolebox)&lt;br/&gt;
Status updated: u'open' =&amp;gt; u'closed'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eser eser</dc:creator><pubDate>Sat, 15 Apr 2017 23:28:23 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net65d26e137f86ea8f0101a999e7308324f6d2ba2e</guid></item><item><title>#2 * and ? are valid infilenames, contrary to doc</title><link>https://sourceforge.net/p/loader/bugs/2/?limit=25#8e5e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Just found this again while reviewing my list of "watched" things.&lt;/p&gt;
&lt;p&gt;I think at the time I hadn't grasped that the manual is referring to quoted globs to be interpreted by the function; I was thinking the shell expands globs first. Maybe the loadx example wasn't in the manual at the time, or maybe I just missed it.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Noam Postavsky</dc:creator><pubDate>Tue, 05 Feb 2013 16:18:45 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net70577da441890c0d7aa52fa3a62aaa0ed542342d</guid></item><item><title>#2 * and ? are valid infilenames, contrary to doc</title><link>https://sourceforge.net/p/loader/bugs/2/?limit=25#4d54</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi. It's all about detecting if a string is just plain text or a glob pattern. We decide if we should call find or not from it. Detecting a string if it has glob expressions may be easy but detecting if all aren't quoted is not. One easiest trick I've thought about how to do is by replacing all quote patterns with empty string e.g. ${__//'*'}, then test again if those characters still exists. This may be easy in shells like Bash but not in other simpler shells that doesn't have such functions, and we my have to use external commands like sed. The part where we detect if a string is a pattern or not is very speed critical and would give significant slow down in its operation if we use external commands or heavier functions like that. * and ? may be valid filename characters but they are rarely used for scripts and the advantage of detecting it over speed and convenience to the default pattern that doesn't use the options is pretty inessential. Same reason would apply to brackets.&lt;/p&gt;
&lt;p&gt;Sorry for the late reply, and thanks for your comment,&lt;/p&gt;
&lt;p&gt;konsolebox&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">konsolebox</dc:creator><pubDate>Sun, 13 Jan 2013 01:10:29 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netbdb84bb36d568444b96cec72a62603608251dc0f</guid></item></channel></rss>