function, function...who's got the function?

function, function...who's got the function?

Post by Linux Nu » Sun, 31 Dec 1899 09:00:00



Greetings fellow Linux enthusiasts!

I was wondering if anybody could give me some advice on functions.

Is it better to put those in your .bash_profile or instead in your
.bashrc file for carrying over into each sub-shell?

Any input would be appreciated!

Thanks!

Mark

 
 
 

function, function...who's got the function?

Post by Andreas Ferb » Sun, 31 Dec 1899 09:00:00


I have the function, but I don't give it to you :-)



Quote:> Greetings fellow Linux enthusiasts!

> I was wondering if anybody could give me some advice on functions.

> Is it better to put those in your .bash_profile or instead in your
> .bashrc file for carrying over into each sub-shell?

Put it in your .bashrc, then it would be loaded on every
(interactive) shell startup.

Otherwise you only get them in a login shell.

CU

--
The best defense against logic is ignorance.

Send me mail with subject 'get-public-key' to get my public key.

 
 
 

1. Re. AIX Function Equivalent To VM's "RETRIEVE" Function Re: AIX Function Equivalent To VM's "RETRIEVE" Function

Try,

$ set -o emacs  # for emacs command line editing

  use <Ctrl-p>  # retrieve the last line
  use <Ctrl-b>  # move one character backwards
  use <Ctrl-f>  # move one character forwards
  use <Ctrl-d>  # delete one character
  use <Ctrl-a>  # move cursor to the first character
  use <Ctrl-e>  # move cursor to end of line
  use <......>  #

$ set -o vi     # for vi style command line editing

  <try yourself>

-frank-

.----------------------------------------------------------------------.
| E-Mail: FRANVM3(KRAEMERF)                 - IBM VNET  "Yes, I'm one  |
| ======  IBMMAIL(DEIBM27S)                 - IBM-Mail   of those      |
|         DE.IBMX400.IBMMAIL.KRAEMER.KRAEME - X.400      stupid IBM    |

| Voice : +49-(0)611/776-364                                           |
| Mail  : Abraham-Lincoln Street 26, 6200 Wiesbaden, Germany           |
'----------------------------------------------------------------------'

2. Asus V3000

3. AIX Function Equivalent To VM's "RETRIEVE" Function

4. linking multiple libraries

5. functions: why doesn't this short function work?

6. System plugins for netscape 7

7. Doing dead function elimination without -finline-functions in 2.95.2?

8. 2.4.0 Kernel Panic w/Adaptec 29160

9. BASH function: does the definition order of the function matter?

10. Doing dead function elimination without -finline-functions in 2.95.2?

11. Call function within a function

12. Functions for JavaScript function are needed

13. passing variable number arguments from function to function