-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredclisp
More file actions
27 lines (23 loc) · 957 Bytes
/
Copy pathredclisp
File metadata and controls
27 lines (23 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Start CLISP REDUCE on Cygwin, Linux or macOS.
# Author: Francis J. Wright <https://sourceforge.net/u/fjwright>
# Time-stamp: <2026-03-31 16:11:05 franc>
for arg do
case $arg in
-h|--help)
echo 'Start CLISP REDUCE on Cygwin, Linux or macOS.'
echo 'Usage: redclisp <options>'
echo 'Useful options:'
echo ' -h, --help Print this message and exit.'
echo ' -m <size> Set memory size (<size> = nB or nKB or nMB).'
echo ' --no-rcfile Inhibit REDUCE startup file.'
exit;;
--no-rcfile) norcfile='-- --no-rcfile';;
*) args="$args $arg";;
esac
done
args="$args $norcfile"
cl=$(realpath $(dirname $0)) # common-lisp directory
exec clisp -ansi -norc -E utf-8 -M $cl/fasl.clisp/reduce.mem $args
# CLISP REDUCE options (currently only --no-rcfile) must appear after
# any CLISP options and *must* follow the option separator --.