Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use 'env' to set PATH #147

merged 1 commit into from Jun 12, 2013

use 'env' to set PATH #147

merged 1 commit into from Jun 12, 2013


Copy link

@hayato1980 hayato1980 commented Jun 12, 2013


In my CentOS 5.9 sudo 1.7.2 environment, I got following rake spec result.

  1) Service "httpd" 
     Failure/Error: it { should be_enabled   }
       sudo PATH=/sbin:/usr/sbin:$PATH chkconfig --list httpd | grep 3:on
       sudo: chkconfig: command not found


sudo PATH=... is no effect following command.

$ echo $PATH
$ sudo PATH=/sbin chkconfig
sudo: chkconfig: command not found
$ sudo env PATH=/sbin chkconfig
chkconfig バージョン - Copyright (C) 1997-2000 Red Hat, Inc.
このソフトウェアは GNU 一般公共使用許諾契約書に従って無償で再配布することができます。

使用法:  chkconfig --list [名前]
         chkconfig --add <名前>
         chkconfig --del <名前>
         chkconfig [--level <レベル>] <名前> <on|off|reset|resetpriorities>


add 'env' to command if set RSpec.configuration.path or pre_command

mizzy added a commit that referenced this issue Jun 12, 2013
@mizzy mizzy merged commit c3dc08d into mizzy:master Jun 12, 2013
1 check failed
Copy link

@mizzy mizzy commented Jun 12, 2013

Thanks! But tests are failing, so I will fix them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
2 participants