[Bug 1167] New: Unable to have file extensions in app names
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1167 Summary: Unable to have file extensions in app names Product: Swift Version: trunk Platform: PC OS/Version: Mac OS Status: NEW Severity: normal Priority: P2 Component: General AssignedTo: [email protected] ReportedBy: [email protected] I'm not sure if this is a bug or by design, but Swift does not seem to allow file extensions in app names. For example: app (file o) simulation () { simulate.sh stdout=filename(o); } This results in: Swift trunk swift-r7349 (swift modified locally) cog-r3846 RunID: 20131202-1525-s8xkny3d Could not compile SwiftScript source: line 5:11: expecting a semicolon, found '.' Trunk has wildcards in tc.data now by default. That makes things very nice, but for apps that have extensions (.py, pl, .sh) it still requires an app definition. -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1167 Mihael Hategan <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Mihael Hategan <[email protected]> 2014-05-29 15:13:45 --- It used to be by design, and tc.data not accepting wildcards was also by design. The reasoning was that if swift was used in a web application that allowed a user to edit a swift script, this would allow arbitrary command execution. However, we already implemented wildcards in tc.data, so not allowing extensions is relatively pointless outside a restrictive environment. It is still possible to restrict the apps that can be run by removing wildcards from tc.data, so the current scheme should support both scenarios. That said, trunk has had support for arbitrary strings as apps. However, they need to be enclosed in double quotes: app (file o) simulation () { "simulate.sh" stdout=filename(o); } This should be documented. -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@mcs.anl.gov