On 25 November 2012 10:57, Paul Eggert <[email protected]> wrote: > On 11/24/2012 10:13 PM, David Wilson wrote: >> my very old shell macros no longer function as they once did. > > There's not much context here, so it's not clear > what you're asking for. Do you want grep to ignore > -r when no file names are being passed?
No, that would imply reverting the change which is unlikely to happen (and cause a further breaking change for anyone relying on the new behaviour). I want to know how to emulate the old behaviour, as this isn't obvious. My only solution is to wrap grep in a macro that parses its arguments, and passes -r only if paths have been provided on the command line. David
