Circular name references in bash shell function, but not in ksh
I’m writing a set of shell functions that I want to have working in both Bash and KornShell93, but with Bash I’m running into a “circular name reference” warning.
I’m writing a set of shell functions that I want to have working in both Bash and KornShell93, but with Bash I’m running into a “circular name reference” warning.
I want to know what return values we can use that will not be mistaken by for ex. SIGINT?
Is it possible to call a function which is declared below in bash?
I have a function which converts epoch time to date. Here is the definition
So I started using zsh. I like it all right. It seems very cool and slick, and the fact that the current working directory and actual command line are on different lines is nice, but at the same time, I’m noticing that zsh can be a bit slower than bash, especially when printing text to the screen.
After reading ilkkachu’s answer to this question I learned on the existence of the declare (with argument -n) shell built in.
Using extended Unicode characters is (no-doubt) useful for many users.
To make it short, doing something like:
I was discussing with my friend on how the commands are parsed in the shell, and he told me that bash searches the command in following order
So I am editing bashrc constantly, and I have a terminal open with a working function definition, although bashrc has been updated with a wrong function definition. (Because the definition do not change until I source the updated bashrc) How can I look up the working function definition in this case? For example, if I type: