Re: [Help-bash] Why bash does not recoganize array type smartly?
From:
Greg Wooledge
Subject:
Re: [Help-bash] Why bash does not recoganize array type smartly?
Date:
Wed, 16 Mar 2016 14:59:28 -0400
User-agent:
Mutt/1.4.2.3i
On Wed, Mar 16, 2016 at 06:40:32PM +0000, Dan Douglas wrote:
> That's basically what my current solution is. I heard zsh has a
> pre-command variable that would be much better but I still need some
> ugly hacks to make it work.
Bash 4.4-rc1 also has this:
c. New prompt string: PS0. Expanded and displayed by interactive shells after
reading a complete command but before executing it.
I haven't tested it, but I'm assuming you can put command substitutions
in it, if you're into that.