bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grep


From: Stepan Kasal
Subject: Re: grep
Date: Thu, 1 Jul 2004 16:45:15 +0200
User-agent: Mutt/1.4.1i

Hello,
  thank you for your bug report.

You observed an unexpected behaviour of the commands
> tmp1=`grep phone 2`
> echo $tmp1

As you stated before that the output of the grep command itself works
as expected, the problem must be caused by your shell.

Which shell do you use? Bash, tcsh, ash, or another?
Which version of the shell? Which OS do you use?

What if you try to replace the first command by

        tmp1=$(grep phone 2)

and/or the second one by

        echo "$tmp1"

What if you inspect the variable by another means by using the
command "set", for example?

Yours,
        Stepan Kasal




reply via email to

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