Yes figured the hard way :)
Thanx
On Thu, Jun 24, 2021 at 1:51 PM Greg Wooledge wrote:
> On Thu, Jun 24, 2021 at 09:48:59AM +0200, Phi Debian wrote:
> > $ function echo { \echo the function version; \echo "$@"; }
>
> For the record, this isn't how you write a function that wraps a builtin.
> Use
On Thu, Jun 24, 2021 at 09:48:59AM +0200, Phi Debian wrote:
> $ function echo { \echo the function version; \echo "$@"; }
For the record, this isn't how you write a function that wraps a builtin.
Use the "builtin" command instead.
echo() {
printf 'echo() wrapper invoked.\n'
builtin echo "$@"
Arghh! I knew it was a pilot error :)
unset PROMPT_COMMAND fix it :)
my PROMPT_COMMAND reference a function that do 'echo' and I should use
"command echo" in the echo function not \echo.
On Thu, Jun 24, 2021 at 10:51 AM Phi Debian wrote:
> I discovered that
>
> $ type -ta word
>
> Would te
I discovered that
$ type -ta word
Would tell me what I wanted i.e all the defs of word :)
On Thu, Jun 24, 2021 at 9:48 AM Phi Debian wrote:
> Hi All,
>
> Dunno if this is a bug or pilot error, I bumped into this.
>
>
> $ type echo
> echo is a shell builtin
>
> $ function echo { \echo the fun
Hi All,
Dunno if this is a bug or pilot error, I bumped into this.
$ type echo
echo is a shell builtin
$ function echo { \echo the function version; \echo "$@"; }
After this I got different behavior on 'same' OS version, same BASH
version, meaning my environment must interact but can't tell to