oh-my-fish / plugin-foreign-env

Run foreign bash scripts and capture exported environment variables
MIT License
221 stars 15 forks source link

"%s" in env var #3

Closed jab closed 8 years ago

jab commented 8 years ago

Say foo.sh has:

#!/bin/sh
export FOO="hello, %s"

I want fenv source foo.sh to set the environment variable FOO to the literal value "hello, %s". Instead it's getting set to something weird like 15654 15253 15251.... Can you tell what's going on, and is it possible to get this to work?

derekstavis commented 8 years ago

Hm. That's a side effect of using printf. I will try to figure out the issue. Thanks for the report.

jab commented 8 years ago

My pleasure, thanks for taking a look. Is there anything I can do to work around this in the meantime?

derekstavis commented 8 years ago

This should be fixed in master. I'm closing this issue for now. Feel free to comment if you happen to find this issue again. Thanks for the report!!