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*

7
  • What is your PROMPT_COMMAND? Commented Aug 29, 2015 at 4:17
  • when I do echo $PROMPT_COMMAND, it shows update_terminal_cwd; on Mavericks Commented Aug 29, 2015 at 4:22
  • And what's trap -p return? Commented Aug 29, 2015 at 4:29
  • 1
    Please read man bash, search for builtin for details about trap. I can't help if you don't give the information. Commented Aug 30, 2015 at 10:21
  • 2
    @太極者無極而生 I had the exact same doubt today. I suggest you check out this lists.gnu.org/archive/html/help-bash/2016-05/msg00022.html so as long as number of new entries this session is less than or equal to the length of the history list, force append will happen, the `histappend' option doesn't have an effect. Commented Jan 12, 2018 at 6:00