Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 3
    This is probably an XY problem. Why do you need a function called >? Commented Mar 25, 2015 at 10:20
  • @jofel I need to add the function in bashrc file, when redirection symbol is occur on my terminal window I need to call that function. Commented Mar 25, 2015 at 10:24
  • We are getting closer. Can you elaborate more? Do you need this for debugging? bash accepts only one argument after > so why do you use $1 and $2? The answer to your actually question is probably actually no, but it is not yet clear what you really want to achieve. Commented Mar 25, 2015 at 10:31
  • Please edit your question and explain what your final objective is. What exactly do you want to achieve with this function? Calling a function > is not a solution, if you explain what you are trying to do, we might be able to help you find another way. Commented Mar 25, 2015 at 12:52
  • Learning is like the sky... it never ends.;) Commented Aug 6, 2023 at 8:52