http://www.riscos.info/bugzilla3/show_bug.cgi?id=263

           Summary: Set Alias$command containing |M in generated !Run
                    files causes trouble for string comparison
           Product: GCC/GCCSDK
           Version: other
          Platform: Other
        OS/Version: RISC OS
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Porting Scripts and Packaging
        AssignedTo: gccsdk-bugzi...@markettos.org.uk
        ReportedBy: bugzi...@markettos.org.uk
   Estimated Hours: 0.0


Carlos Michael Santillan writes:

I found a problem with some packages at riscos.info. I use the
Vorbis-Tools for my little application OggTag. It looks that a lot of
the command line programms at riscos.info has this problem.


In Vorbis-Tools !Boot is the command

Set Alias$vorbiscomment WimpSlot -min 686k |M Run
<Vorbis-Tools$Dir>.vorbiscomment %%*0

In !Run of OggTag I wanted to check for vorbiscomment with

If "<Alias$vorbiscomment>" = "" Then Error OggTag requires the
Vorbis-Tools

With this command I get "String not recognised". The reason is the "|M"
in the Set Alias$... command of Vorbis-Tools. With the help of Thomas
Milius I found a way round the problem:

Unset vorbiscommentCmdLen
X SetEval vorbiscommentCmdLen LEN(Alias$vorbiscomment)
If "<vorbiscommentCmdLen>" = 0 Then Error OggTag requires Vorbis-Tools
Unset vorbiscommentCmdLen

But I think a better way is to change

Set Alias$vorbiscomment WimpSlot -min 686k |M Run
<Vorbis-Tools$Dir>.vorbiscomment %%*0

in Vorbis-Tools !Boot to

SetMacro Alias$vorbiscomment Set WimpSlot -min 686k |M Run
<Vorbis-Tools$Dir>.vorbiscomment %%*0

In !Boot are similar commands for the other Vorbis tools.

I hope you understand the Problem. If you have installed the
Vorbis-Tools try

If "<Alias$vorbiscomment>" = "" Then Error OggTag requires Vorbis-Tools

in a Taskwindow or if you have installed Curl

If "<Alias$curl>" = "" Then Error See the error

or GZip

If "<Alias$gzip>" = "" Then Error See the error

...

With Whois there is no problem with

If "<Alias$whois>" = "" Then Error See the problem

because there is no WimpSlot in the alias. But I think to set the
WimpSlot is a good idea.

-- 
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to