John Houck <houck> wrote: > * Added support for /bin/env executable isis scripts /usr/bin/env would possibly be a better choice. On my debian linux system, /bin/env does not exist: /bin/ls: /bin/env: No such file or directory On solaris, both /bin/env and /usr/bin/env exist. In any case, did you provide any useful examples of this feature? If not, an example of using isis as a calculator is provided below. For instance, if you save attached script to a file named 'calc' and make it executable (chmod +x calc), then you can use isis as a simple unix command-line calculator, e.g., calc '2*PI/14.3*sin(1)' to produce 0.369729. ----------------------------------------------------------------------- #!/usr/bin/env isis if (__argc == 1) { vmessage ("usage: %s <expression>", __argv[0]); exit (1); } eval (strjoin (__argv[[1:]], " ")); _stk_reverse (_stkdepth ()); while (_stkdepth ()) { static variable x = (); vmessage ("%S", x); } exit (0); ---- You received this message because you are subscribed to the isis-users list. To unsubscribe, send a message to isis-users-request_at_email.domain.hiddenwith the first line of the message as: unsubscribeReceived on Thu Feb 22 2001 - 00:29:13 EST
This archive was generated by hypermail 2.2.0 : Thu Mar 15 2007 - 08:45:50 EDT