I'm surprised I was unable to find this anywhere, so I am sorry if I haven't searched enough.
I want to run a bash script, but have its command erased from the history without changing any settings outside of the script.
I have tried in the bash file
history -d $((HISTCMD))
as HISTCMD
gives the correct row number, but when run in the bash it isn't working.
Any ideas?