Giter Site home page Giter Site logo

Comments (2)

ysthakur avatar ysthakur commented on July 22, 2024 1

Hmm, could you post your config and add what you did in the terminal and what you saw? I haven't made any changes related this in my own config and if I start a line with a space, it's not recorded in history. This has been true for several versions now.

from nushell.

NotTheDr01ds avatar NotTheDr01ds commented on July 22, 2024 1

Yes, this was implemented in #9371 (and the corresponding Reedline nushell/reedline#566) just over a year ago.

However, there might be a slight bug in it depending on how you view things, and perhaps this is what you are seeing?

The "bug" is that the most recent command appears to be cached in memory regardless of whether it is preceded by a space or not. If you hit (Up arrow) immediately after typing a space-suppressed command, that command will appear on the commandline.

However, note that it is never persisted to the history file, and it will disappear from the up-arrow history as soon as the next command is entered.

It's tough to even classify this as a security risk, though, since in that scenario the previous command is going to appear on your screen anyway. Even a Ctrl+L to clear the screen is going to leave it in the scrollback for your terminal app. You'd need to enter a clear --all in order to truly remove it, in which case it would also no longer be available via up-arrow (since the clear command would have overwritten it).

from nushell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.