bug-bash
[Top][All Lists]
Advanced

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

Re: Sourcing a script from a pipe is not reliable


From: Robert Elz
Subject: Re: Sourcing a script from a pipe is not reliable
Date: Fri, 11 Jan 2019 05:43:41 +0700

    Date:        Thu, 10 Jan 2019 13:52:59 -0800
    From:        Jeremy <asfbugzilla@nuru.net>
    Message-ID:  
<CAP_kx+7PSMZCmAevKBnmvB1pgoB_TALbNSk0x9Rj=0U1k9tE2w@mail.gmail.com>

ps:  (intended to add this in the previous reply and forgot...)

  | even though in general I hate
  | to ship a script that uses eval.

Why?    eval is a prefectly proper and useful part of the
shell, and should be used when appropriate.

You shouldn't really be using it on arbitrary user data (or
not without careful precautions) but on strings created by
the script itself it is perfectly safe.

kre




reply via email to

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