On 03/16/2017 06:44 PM, David T-G wrote:
Marc, et al --
...and then Marc Chamberlin said... % ... % % grep run * % ... % but apparently the technical implementation misses this intent and % overloads the "run" parameter with two possible interpretations - is % it a pattern or is it a file name? Allowing this ambiguity to occur [snip]
Wait, what?
grep insists that the first pattern it gets is its search pattern. Even if you have a file called 'run' in the current directory, it's going to look for that string. If you don't put anything after the pattern, it's going to search stdin.
Then Hann, I refer you back to my original posting asking why this simple grep command failed in certain directories? The answer that I got, (at least my interpretation of the answers) was that it failed because there are file names in the directory which had the string "run" within the filename... Hence the need for the double dashes as the first parameter in order to get this grep command to work.. Please review this thread from the beginning... Marc.. -- "The Truth is out there" - Spooky -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org