From: Gioele Barabucci <gioele@svario.it>
To: dash@vger.kernel.org
Subject: Re: Inheriting IFS from environment
Date: Sun, 3 Jan 2016 19:46:45 +0100 [thread overview]
Message-ID: <n6bqam$fk2$1@ger.gmane.org> (raw)
In-Reply-To: <56840F22.6040302@inlv.org>
On 30/12/2015 18:06, Martijn Dekker wrote:
> Unlike bash, *ksh and zsh, dash allows inheriting IFS from the environment:
>
> $ IFS=bla dash -c "x='hela hola'; echo \$x"
> he ho
>
> This seems a bit dodgy from a security point of view.
Hi,
The Debian BTS contains a similar report:
<https://bugs.debian.org/541642>. One suggestion from that thread:
> POSIX says (IEEE Std 1003.1, 2004 Edition; 2.5.3 Shell Variables):
>
>> Implementations may ignore the value of IFS in the environment at the
>> time the shell is invoked, treating IFS as if it were not set.
Regards,
--
Gioele Barabucci <gioele@svario.it>
prev parent reply other threads:[~2016-01-03 18:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-30 17:06 Inheriting IFS from environment Martijn Dekker
2016-01-03 18:46 ` Gioele Barabucci [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='n6bqam$fk2$1@ger.gmane.org' \
--to=gioele@svario.it \
--cc=dash@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox