Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Not a bug in fc. fc would have a hard time putting a command using a here-doc or a quoted newline on one line for instance. Commented May 2 at 8:43
  • Wow! Great detective work. I will work on my set_poshcontext code to handle the multiline output. Commented May 2 at 21:29
  • Well, it turns out that export _myhistcmd; set_poshcontext () { _myhistcmd="$HISTCMD"; } does what I want and is presumably much faster. I did stumble into another rabbit hole in the process. Commented May 2 at 22:25