help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Bug? Explanation??


From: Grisha Levit
Subject: Re: [Help-bash] Bug? Explanation??
Date: Fri, 30 Dec 2016 23:07:34 -0500

On Fri, Dec 30, 2016 at 11:03 PM, PePa <address@hidden> wrote:

r=23; echo $r; echo -e "r=bc\necho $r" |bash

You need to escape the $ in the second echo statement so that $r is not
evaluated to 23 before being echoed.
​


reply via email to

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