[Top][All Lists]
[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
- grep, Daniel Skinner, 2004/07/01
- Re: grep,
Stepan Kasal <=
- Re: grep, Stepan Kasal, 2004/07/05
- Re: grep, Chris F.A. Johnson, 2004/07/06
- grep, Petr Pajas, 2004/07/12