Project

General

Profile

Actions

Bug #3524

closed

system command should prefer CWD to PATH in windows

Added by rogerdpack (Roger Pack) almost 14 years ago. Updated almost 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3dev (2010-06-25 trunk 28432) [i386-mingw32]
Backport:
[ruby-core:31000]

Description

=begin
from within a directory with 'convert.exe' located in it:

D:\installs\ImageMagick-6.6.2-Q16>convert --help | head -n3
Version: ImageMagick 6.6.2-10 2010-06-29 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
...

D:\installs\ImageMagick-6.6.2-Q16>irb
irb(main):001:0> convert --help # error messages pops up indicating it is running the first convert found on the path, not convert.exe within the CWD
=> ""

Thanks!
-r
=end

Actions #1

Updated by runpaint (Run Paint Run Run) almost 14 years ago

=begin
It's for security reasons: http://www.faqs.org/docs/Linux-mini/Path.html#s12 , http://serverfault.com/questions/98587/ . Presumably, if you want to ignore best practice you can add '.' to your path.
=end

Actions #2

Updated by usa (Usaku NAKAMURA) almost 14 years ago

  • Status changed from Open to Rejected

=begin
As Run Paint Run Run says, set "." to PATH by yourself if you
want to shoot your foot.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0