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:29:46 +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 *)
>

But also, if IFS is what it is supposed to be, wouldn't the correct
syntax be:

    IFS='\n'
    vi
    $(grep
    -l
    PATTERN
    *)

Or is IFS not really an IFS?





reply via email to

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