News for hackers. Stuff that matters.
Re:Remote code execution, git, and OS X by OJFord on Tuesday April 19, 2016 @01:38PM (#11528652)
If you prefix it with something already in there then it's effectively rearranged.

You wouldn't do this deliberately, of course, but it happens a lot - people end up with massive PATHs because they blindly prefix when something's gone wrong and it _may_ be the solution.

Re:Remote code execution, git, and OS X by tobylane on Thursday April 21, 2016 @06:11AM (#11540781)
I was thinking prepending and appending aren't rearranging.
Re:Remote code execution, git, and OS X by OJFord on Friday April 29, 2016 @07:58PM (#11599535)
The important part of my above sentence was "with something already there".

If $PATH == 'a:b' and you do `export PATH=b:$PATH, then you've basically rearranged it. It may as well be 'b:a'.