Re: Do a readline function execution inside bash

2020-09-15 Thread Chet Ramey
On 9/14/20 9:57 PM, Budi wrote: > simply run a readline function among lines codes of bash script such a > menu-complete, or menu-complete repeated thrice, or etc etc In this model, where would readline get its data? Readline functions operate on pieces of an input line, or an entire input line, s

Re: Do a readline function execution inside bash

2020-09-14 Thread Koichi Murase
2020-09-15 10:59 Budi : > simply run a readline function among lines codes of bash script such > a menu-complete, or previous-history repeated thrice, or etc What is not clear is not how you call the readline function, but what kind of ``script'' do you assume? a. If it is the normal executable s

Re: Do a readline function execution inside bash

2020-09-14 Thread Lawrence Velázquez
> On Sep 14, 2020, at 9:59 PM, Budi wrote: > > simply run a readline function among lines codes of bash script such a > menu-complete, or previous-history repeated thrice, or etc That doesn't really answer Greg's question. What larger task are you trying to accomplish by invoking readline functi

Re: Do a readline function execution inside bash

2020-09-14 Thread Budi
simply run a readline function among lines codes of bash script such a menu-complete, or previous-history repeated thrice, or etc On 9/15/20, Budi wrote: > simply run a readline function among lines codes of bash script such a > menu-complete, or menu-complete repeated thrice, or etc etc > > On 9

Re: Do a readline function execution inside bash

2020-09-14 Thread Budi
simply run a readline function among lines codes of bash script such a menu-complete, or menu-complete repeated thrice, or etc etc On 9/14/20, Greg Wooledge wrote: > On Mon, Sep 14, 2020 at 10:09:16PM +0700, Budi wrote: >> How to do a readline function execution inside bash script as mimic to >>

Re: Do a readline function execution inside bash

2020-09-14 Thread Greg Wooledge
On Mon, Sep 14, 2020 at 10:09:16PM +0700, Budi wrote: > How to do a readline function execution inside bash script as mimic to > actual key press ? Please tell us what you're actually trying to do. It makes a huge difference. You said "script", so I guess you don't want to pre-populate the input