bugGNU nano - Bugs: bug #53966, bash history is not available via...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #53966: bash history is not available via execute in buffer (^R^X)

Submitter:  None
Submitted:  Thu 24 May 2018 07:42:57 AM UTC
   
 
Severity:  3 - Normal Status:  Invalid
Assigned to:  None Open/Closed:  Closed

Thu 24 May 2018 08:59:04 AM UTC, comment #1: 

When you type ^R^X, you are at nano's Execute-Command prompt, not at a bash prompt.  So at the ^R^X prompt, you can only type things that nano understands: <Up> (previous command), ^K (wipe), ^U (paste), plus some others.

(Also, when pressing <Enter> at the ^R^X, the composed command will be passed to the system's shell -- in your case this may be bash, but it could be zsh or dash or whatever is configured on your system.)

Benno Schulenberg <bens>
Group administrator
Thu 24 May 2018 07:42:57 AM UTC, original submission:  

In nano there's an option to execute a bash command in a new buffer (^R^X) (figure 1)

So I was thinking about creating a keybinding that would go to this execute command menu and enter the following:

^nano^python^

Because the last command in history would be `nano test.py` this wil be changed into `python test.py` (see figure 3) and the python script would be run. But unfortunately bash doesn't recognize these history functions (figure 2). Is there a way to enable this?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-29 bens Open/ClosedOpen Closed
    2018-05-24 bens StatusNone Invalid
        Summarybash history via execute in buffer not available bash history is not available via execute in buffer (^R^X)
    2018-05-24 None Attached File- Added Schermafbeelding 2018-05-24 om 09.41.06.png, #44205
        Attached File- Added Schermafbeelding 2018-05-24 om 09.41.41.png, #44206
        Attached File- Added Schermafbeelding 2018-05-24 om 09.41.18.png, #44207

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code