I have setup several functions in my .bashrc file. I would like to just display the actual code of the function and not execute it, to quickly refer to something.
Is there any way, we could see the function definition?
I don't know about sourcing your .bashrc in gnome, but you are probably better off moving your PATH definition to your .bash_profile, before you source the .bashrc.
skanky
https://bbs.archlinux.org/profile.php?id=30276
2012-05-10T08:49:40Z
In Linux kernel version 3.5, in file kernel/printk.c there is a function call
trace_console(text, 0, len, len); @line 1219
I am not able to find the definition of this function. I greped the complete kernel for it and also tried it with cscope and ctags, but still I was not able to find the definition for it. Is there any concept I am missing for the same ?
I have a .bashrc file that has a very simple function like this
function module() {
....
}
I type "bash" on the command prompt and as expected the .bashrc gets executed however I get the error:
'ash: /user/.bashrc: line 1: syntax error near unexpected token `{
'ash: /user/.bashrc: line 1: `function module() {
I have tried removing the word "function" and I have also tried removing the ()
I have a .bashrc file that has a very simple function like this
function module() {
....
}
I type "bash" on the command prompt and as expected the .bashrc gets executed however I get the error
'ash: /user/.bashrc: line 1: syntax error near unexpected token `{
'ash: /user/.bashrc: line 1: `function module() {
I have tried removing the word "function" and I have also tried removing the ()
Is there any way I can redefine a bash function in terms of its old definition?
Is there a simple way to list all the command conflicts that have occurred in the system due to the bashrc update involving alias commands?
For example, someone writes alias ls=/path/to/user-generated/executable in bashrc. How does one find out that this is masking an actual command (ls). One way seems to be to run all the aliases before and after sourcing bashrc and diff the output.
I'm trying to launch one command in a new gnome-terminal window from a shell script, and it seems that my .bashrc file doesn't get sourced when calling gnome-terminal and executing a command:
gnome-terminal -t "my title" -e vim
But it does when launching gnome-terminal alone:
gnome-terminal -t "my title"
(for testing purposes, just add a echo "something" to the end of the .bashrc)
I also tr
How can I write a function in zsh that invokes an existing command with the same name as the function itself? For example, I've tried this to illustrate my question:
function ls
{
ls -l $1 $2 $3
}
But I see this when I execute it with ls *:
ls:1: maximum nested function level reached
I assume this is because the function is being called recursively.