Re: EDITOR with tilde not expanded in git-commit

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

 



>>>>> "Bill" == Bill Lear <rael@xxxxxxxxxx> writes:

Bill> I was told eval was "wrong on multiple levels".

I should elaborate.

Using "eval" here means that you *then* have to be careful about whitespace
quoting.  For example, if my $HOME had a space in it,
EDITOR="$HOME/bin/superemacs" would be broken if you add the extra eval, since
the whitespace would be treated as a delimeter on the second lexing.  I'd have
to figure out how to set EDITOR with the right quotes or backwhacks in it to
undo the effect of your eval.

Also, eval treats data as code, and if for some reason this should end up in a
setuid environment (perhaps as a web application), eval would generate a
trivially accessed gigantic security hole.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxxxxxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux