Configuration Information [Automatically generated, do not change]:
Machine: aarch64
OS: darwin21.6.0
Compiler: clang
Compilation CFLAGS: -DSSH_SOURCE_BASHRC
-DDEFAULT_LOADABLE_BUILTINS_PATH='/opt/homebrew/Cellar/bash/5.2.37/lib/b$
uname output: Darwin mini.home 21.6.0 Darwin Kernel Version 21.6.0: Fri Sep 15
16:17:13 PDT 2023; root:xnu-8020.$
Machine Type: aarch64-apple-darwin21.6.0
Bash Version: 5.2
Patch Level: 37
Release Status: release
Description:
If I make a function that does history -s whatever, that seems to be put
in the history instead of the function call rather than along with it.
Repeat-By:
foo() { echo foo; history -s bar; }
Then type foo then up arrow a couple times. I would expect bar then foo.
I have to do this to have both in the history: foo() { echo foo;
history -s foo "$@"; history -s bar; }
Is this working as intended?
Thanks!