multiline command chunks in bash history into multiple lines (WSL) Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How can I automatically rotate/archive my bash history logs?Bash History is not WorkingHow do I access my Bash History?Half of bash history is missinghow do I remove the last 5 lines in bash history?Hide “history -d” in bash historyGnome Shell command prompt historyCommand history seems to be missing the first 75 linesSynchronize packages between multiple wsl installationsUsing aliases in my WSL command line

Jazz greats knew nothing of modes. Why are they used to improvise on standards?

Strange behaviour of Check

Can a non-EU citizen traveling with me come with me through the EU passport line?

How many things? AとBがふたつ

How to stop my camera from exagerrating differences in skin colour?

What is the electric potential inside a point charge?

Passing functions in C++

Active filter with series inductor and resistor - do these exist?

Can I throw a longsword at someone?

Notation for two qubit composite product state

Estimate capacitor parameters

What are the performance impacts of 'functional' Rust?

Why is there no army of Iron-Mans in the MCU?

Cauchy Sequence Characterized only By Directly Neighbouring Sequence Members

Why is "Captain Marvel" translated as male in Portugal?

How to say that you spent the night with someone, you were only sleeping and nothing else?

Limit for e and 1/e

What do you call the holes in a flute?

3 doors, three guards, one stone

What to do with post with dry rot?

What items from the Roman-age tech-level could be used to deter all creatures from entering a small area?

Classification of bundles, Postnikov towers, obstruction theory, local coefficients

How to rotate it perfectly?

Geometric mean and geometric standard deviation



multiline command chunks in bash history into multiple lines (WSL)



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How can I automatically rotate/archive my bash history logs?Bash History is not WorkingHow do I access my Bash History?Half of bash history is missinghow do I remove the last 5 lines in bash history?Hide “history -d” in bash historyGnome Shell command prompt historyCommand history seems to be missing the first 75 linesSynchronize packages between multiple wsl installationsUsing aliases in my WSL command line



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















In WSL, commands which written in multiple lines, after I exit from bash I cannot run it which it was single command written in multiline as it chunks into multiple lines in bash_history file.



I checked below flags status and setting/unsettling them didn't work.



cmdhist
lithist


Is there any other shell flag for that I need to config?



Bash veriosn is 4.3, same issue on v4.4



I found this bug reported since a long years ago, which sounds it doesn't really fixed yet?! Also note that I have also changed the HISTTIMEFORMAT suggested in comments in mentioned report as well but still same issue.










share|improve this question



















  • 2





    I can reproduce the problem on regular Ubuntu, so this isn't WSL-specific.

    – wjandrea
    2 days ago


















0















In WSL, commands which written in multiple lines, after I exit from bash I cannot run it which it was single command written in multiline as it chunks into multiple lines in bash_history file.



I checked below flags status and setting/unsettling them didn't work.



cmdhist
lithist


Is there any other shell flag for that I need to config?



Bash veriosn is 4.3, same issue on v4.4



I found this bug reported since a long years ago, which sounds it doesn't really fixed yet?! Also note that I have also changed the HISTTIMEFORMAT suggested in comments in mentioned report as well but still same issue.










share|improve this question



















  • 2





    I can reproduce the problem on regular Ubuntu, so this isn't WSL-specific.

    – wjandrea
    2 days ago














0












0








0








In WSL, commands which written in multiple lines, after I exit from bash I cannot run it which it was single command written in multiline as it chunks into multiple lines in bash_history file.



I checked below flags status and setting/unsettling them didn't work.



cmdhist
lithist


Is there any other shell flag for that I need to config?



Bash veriosn is 4.3, same issue on v4.4



I found this bug reported since a long years ago, which sounds it doesn't really fixed yet?! Also note that I have also changed the HISTTIMEFORMAT suggested in comments in mentioned report as well but still same issue.










share|improve this question
















In WSL, commands which written in multiple lines, after I exit from bash I cannot run it which it was single command written in multiline as it chunks into multiple lines in bash_history file.



I checked below flags status and setting/unsettling them didn't work.



cmdhist
lithist


Is there any other shell flag for that I need to config?



Bash veriosn is 4.3, same issue on v4.4



I found this bug reported since a long years ago, which sounds it doesn't really fixed yet?! Also note that I have also changed the HISTTIMEFORMAT suggested in comments in mentioned report as well but still same issue.







windows-subsystem-for-linux bash-history






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago







αғsнιη

















asked Apr 11 at 14:50









αғsнιηαғsнιη

25k23100162




25k23100162







  • 2





    I can reproduce the problem on regular Ubuntu, so this isn't WSL-specific.

    – wjandrea
    2 days ago













  • 2





    I can reproduce the problem on regular Ubuntu, so this isn't WSL-specific.

    – wjandrea
    2 days ago








2




2





I can reproduce the problem on regular Ubuntu, so this isn't WSL-specific.

– wjandrea
2 days ago






I can reproduce the problem on regular Ubuntu, so this isn't WSL-specific.

– wjandrea
2 days ago











0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1133015%2fmultiline-command-chunks-in-bash-history-into-multiple-lines-wsl%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1133015%2fmultiline-command-chunks-in-bash-history-into-multiple-lines-wsl%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?