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.

4
  • 4
    I think that you cannot pass arguments to an alias. Try converting fg to a function instead.
    – sakisk
    Commented Mar 18, 2011 at 9:39
  • 1
    I have an alias --> alias ff='find . | xargs grep $1 -sl' which works fine!
    – Narek
    Commented Mar 18, 2011 at 9:45
  • 8
    fg is a shell builtin, I recommend you chose a different name whether you implement this as an alias or (better still) a function.
    – johnsyweb
    Commented Mar 18, 2011 at 9:53
  • 4
    @Narak, I think your second example there is only working by accident.
    – mattdm
    Commented Mar 18, 2011 at 12:11