I see the record command, and wonder should I use record to achieve this...
still, not found where to load the record into the sh...(I mean by
programmably, not like manually open the file then click ctrl+c then ctrl+v
and paste to the shell window)

Xeno Amess <xenoam...@gmail.com> 于2025年7月19日周六 17:40写道:

> question 1 and 2 is cleared.
> still, I'm uncertain about question 3
> 3. also another question, I binded several variables, and injected some
> functions, how can I save the whole context, and load it for use when next
> time(something like squeak if you know it)
>
>
> Paul King <pa...@asert.com.au> 于2025年7月16日周三 21:57写道:
>
>>
>>
>> On Wed, Jul 16, 2025 at 6:07 PM Xeno Amess <xenoam...@gmail.com> wrote:
>>
>>> I see
>>> https://github.com/apache/groovy/blob/master/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
>>>
>>> and still have several questions...
>>>
>>> 1. it said 'Features: No need for *go* command to execute buffer.'
>>> what be the *go* here mean?
>>> and what the *go* do with groovy/groovysh?
>>> I just feel somehow confused.
>>>
>>
>> That is a little outdated. In very old versions of groovysh, I
>> believe you entered commands and then typed "go" to execute them.
>>
>>
>>> 2. what is *the buffer* mean in this doc...
>>> (and save/load)
>>>
>>
>> The current version (but changing in 5.0.0-beta-2) of Groovysh has the
>> idea of a buffer where part lines are added until a complete compilable
>> snippet is obtained. Once the buffer (potentially empty) plus the last
>> entered line together are compilable, the code is compiled and the buffer
>> reset.
>>
>>
>>> 3. also another question, I binded several variables, and injected some
>>> functions, how can I save the whole context, and load it for use when next
>>> time(something like squeak if you know it)
>>> I ask as it seems not the same save/load you provided as command...
>>>
>>
>> You should check out the new version coming in 5.0.0-beta-2.
>>
>> Paul.
>>
>>
>

Reply via email to