[Swift-devel] [Bug 80] New: simple_mapper strange prefix behaviour

bugzilla-daemon at mcs.anl.gov bugzilla-daemon at mcs.anl.gov
Mon Jul 9 08:56:06 CDT 2007


http://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=80

           Summary: simple_mapper strange prefix behaviour
           Product: Swift
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
        AssignedTo: benc at hawaga.org.uk
        ReportedBy: benc at hawaga.org.uk
                CC: swift-devel at ci.uchicago.edu


The following program generates output files z.3.out and z.7.out. This is what
I expected.

Substituting prefix to be "99" instead of "z" produces files: 0099.3.out and
0099.7.out - the array index value is padded to four digits. This is slightly
surprising.

And substituting prefix to be "99-" causes an execution failure like this:
Swift v0.1-dev

RunID: spqficzyd1ey1
Execution failed:
        For input string: "99-"

which is very surprising.

It looks as if the mapper is trying to find structure (unsuccessfully) inside
prefix when perhaps it shouldn't.

This is with swift r900.

Program follows:

type messagefile {}

(messagefile t) greeting() { 
    app {
        echo "hello" stdout=@filename(t);
    }
}

messagefile outfile[] <simple_mapper;prefix="z",suffix=".out">;

outfile[3] = greeting();
outfile[7] = greeting();


-- 
Configure bugmail: http://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Swift-devel mailing list