|
From: | Chet Ramey |
Subject: | Re: is it normal that $BASH_COMMAND doesnt contain func() definition cmds ? then its just ( again ? ) the last cmd before foo() def |
Date: | Fri, 30 Jun 2023 12:56:29 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 |
On 6/29/23 11:33 PM, Kerin Millar wrote:
Perhaps $READLINE_LINE would be to your taste.how to get this variable havent compiled bash.dev yet .. is it there .. ?It's there but only usable in certain contexts. I had it in my mind that it would be expandable in PS1. Unfortunately, that doesn't seem to be true.
It's available during execution of bash commands bound to readline key sequences with `bind -x', so they can modify it. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |