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

Re: oc and tilde expansion

Shell expansion doesn't work in the middle of a value... it means we have to special-case ~ inside the command logic itself, which is unfortunate

Feel free to open an issue at https://github.com/openshift/origin/issues/new

I'm sure this isn't the only filepath handling code that has this issue. It's questionable how far we want to go to duplicate shell expansion inside commands, though

On Sun, Jul 31, 2016 at 3:25 PM, Braswell, Stephen <stephen unc edu> wrote:

Recently when trying to add a new secret, I noticed that the ‘oc’ command doesn’t seem to support tilde expansion for home directory location.  For example, I tried to run the following:

oc secrets new-sshauth mysecret --ssh-privatekey=~/.ssh/openshift_rsa

and got a no such file error:

error: open ~/.ssh/openshift_rsa: no such file or directory

If I point to the actual full path it works.  I’ve tried this on both Mac and RHEL 7.  Here is the version of the ‘oc’ command I’m using (from Enterprise/Container Platform):

oc v3.2.1.9-1-g2265530
kubernetes v1.2.0-36-g4a3f9c5



users mailing list
users lists openshift redhat com

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