bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spaces in args, escapes, and command substitution


From: bash
Subject: Re: Spaces in args, escapes, and command substitution
Date: Mon, 30 Oct 2006 11:20:04 +1100

>
>That's because you set IFS for the vi, but not for the command
>substitution.  Break your result into two commands:
>
>IFS='\n'
>vi $(grep -l PATTERN *)
>

So the IFS setting takes effect immediately after it is seen?
So a newline is needed?

I would have hoped that the IFS was interpreted after its delimiter
has been encountered, so that the single line example would work.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]