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
merged 1 commit into from Jun 12, 2013
Merged

use 'env' to set PATH #147

merged 1 commit into from Jun 12, 2013

Conversation

@hayato1980
Copy link
Contributor

@hayato1980 hayato1980 commented Jun 12, 2013

Problem

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

Cause

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

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

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

Patch

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
@mizzy
Copy link
Owner

@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
Labels
None yet
Projects
None yet
2 participants