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 10:58:16 +1100

>According to bash@zacglen.com on 10/29/2006 4:52 PM:
>> 
>> I took a very deep breath and did this from command line:
>> 
>>     IFS='\n' vi $(grep -l PATTERN *)
>> 
>> and guess what - it does not work!
>
>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 *)
>

But dont variables set on command line apply to everything on
that line?





reply via email to

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