【发布时间】:2019-04-30 17:42:36
【问题描述】:
我刚刚开始使用gnu-smalltalk。我从here 获取以下代码并尝试使用gst 命令运行它。
display_etc
| pipe |
pipe := FileStream popen: 'ls -l /etc' dir: FileStream read.
Transcript showCr: pipe contents. !
但是它不理解基本符号|:
$ gst dir_etc.st
Object: nil error: did not understand #|
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject(Object)>>doesNotUnderstand: #| (SysExcept.st:1448)
UndefinedObject>>executeStatements (dir_etc.st:2)
dir_etc.st:3: expected expression
问题出在哪里以及如何解决。感谢您的帮助。
【问题讨论】: