/usr/share/scsh-0.6/misc/getenv.scm is in scsh-common-0.6 0.6.7-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ; Copyright (c) 1993-1999 by Richard Kelsey and Jonathan Rees. See file COPYING.
; ,open primitives
(define getenv
(let ((buffer (make-string 2000)))
(lambda (var-name)
(let ((len (vm-extension 26 (cons var-name buffer))))
(if len
(substring buffer 0 len)
#f)))))
|