On 3/2/12 2:55 AM, Robert Bradshaw wrote:
I think sage foo ... should default to running bin/sage-foo (in the sage environment) if it exists, and treat foo as a file otherwise. Virtually no argument parsing (aside from understanding --) would be involved here, and the decision to use bash/python/... would be delegated to the subscripts. "sage sh ..." would be sufficient for the "-C" option suggested, but "sage gap" and "sage gp" etc. would be natural to have directly. "sage run" could be provided to treat its argument(s) as files too.
-1 to magic parsing of 'sage foo'. What if sage-foo was later added to sage? Then things would break for people.
I like the idea of 'sage run foo' to run foo. How would that be added to a script file, though?
#!/path/to/sage/sage run do some commands Thanks, Jason -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org