Hey folks,
I can't get the following script to run properly, and I'm boggled. It
*should* work according to the manual, unless I'm missing something
*really* simple. I'm running scsh version 0.4.2 under Linux (kernel
1.3.71). The script is:
---
#!/usr/local/bin/scsh -s
!#
(for-each
(lambda (arg)
(let ((wclog (format #f "~A.wc" arg)))
(format #t "~A~%" arg)
(run (| (cat ,arg) (wc))
(> ,wclog)
)
)
)
(glob "*.TXT")
)
---
The script compiles and executes, printing each filename to stdout,
but the pipe "cat ,arg | wc > ,wclog" never materializes. The output
files (,wclog) get created but are empty. Both cat and wc are visible
via the PATH variable, etc.
What gives?
Thanks,
Patrick
========================================================================
Patrick Stickler KC4YYY
Information Technologies International Inc. stickler@itii.com
9018 Notchwood Court http://www.itii.com
Orlando, Florida 32825 USA (+1 407) 380-9841
------------------------------------------------------------------------
SGML Consulting & Engineering, Legacy Data Conversion, WWW/HTML
------------------------------------------------------------------------
An affiliate of the Martin Hensel Corporation http://www.hensel.com
========================================================================
|