help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

is it normal that $BASH_COMMAND doesnt contain func() definition cmds ?


From: alex xmb ratchev
Subject: is it normal that $BASH_COMMAND doesnt contain func() definition cmds ? then its just ( again ? ) the last cmd before foo() def
Date: Fri, 30 Jun 2023 01:34:43 +0200

im working on a multiline prompt
i use $BASH_COMMAND there

the line before the numbers and PWD is bash_cmd

foo() : and complete foo() dont appear
i just wanna say thats a buggy loss

type foo
bash: type: foo: not found

type foo
1 10216 10216 10216 /data/data/com.termux/files/home
foo() :
bash: syntax error near unexpected token `:'

type foo
2 10216 10216 10216 /data/data/com.termux/files/home
foo() { : ; }

type foo
0 10216 10216 10216 /data/data/com.termux/files/home
type foo
foo is a function
foo ()
{
    :
}

type foo
0 10216 10216 10216 /data/data/com.termux/files/home
alias a=b

alias a=b
0 10216 10216 10216 /data/data/com.termux/files/home


...


PS0='\[\e[0m\e[7m\]'
PS1='\[\e[0m\e[K\]
$BASH_COMMAND
$? $UID $EUID $GROUPS $PWD
'


reply via email to

[Prev in Thread] Current Thread [Next in Thread]