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

.env file in root of mounted filesystem not found #146

Closed
dirk-olmes opened this issue Oct 17, 2016 · 2 comments
Closed

.env file in root of mounted filesystem not found #146

dirk-olmes opened this issue Oct 17, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@dirk-olmes
Copy link

dirk-olmes commented Oct 17, 2016

If the .env file resides at the top of a mounted filessytem, it is not read.

Example setup:

# mount
/dev/sda1 on / type ext4 (rw)
/dev/loop0 on /mnt/image type ext4 (rw)

Putting an .env file into /mnt/test works. Putting an .env file into /mnt/image does not work - it is not picked up:

[dirk@centos ~]$ cd /mnt/image
+ cd /mnt/image
+ autoenv_cd /mnt/image
+ set -x
+ command -v chdir
+ builtin cd /mnt/image
+ '[' 0 -eq 0 ']'
+ autoenv_init
+ local _mountpoint _files _orderedfiles _sedregexp
+ '[' linux-gnu '!=' linux-gnu ']'
+ _sedregexp=-r
++ awk 'END{print $NF}'
++ df /mnt/image
+ _mountpoint=/mnt/image
++ sed -r s:/+:/:g
++ echo /mnt/image
+ PWD=/mnt/image
+ command -v chdir
+ builtin cd /mnt/image
++ _hadone=
+++ pwd -P
++ '[' /mnt/image '!=' /mnt/image ']'
+ _files=
++ grep -q shwordsplit
++ setopt
+ zsh_shwordsplit=
+ '[' -z '' ']'
+ setopt shwordsplit
+ origIFS=' 
'
+ IFS='
'
+ _orderedfiles=
+ '[' -z '' ']'
+ IFS=' 
'
+ '[' -z '' ']'
+ unsetopt shwordsplit
+ return 0
++ printf '\033]0;%s@%s:%s\007' dirk centos /mnt/image
@dasJ dasJ added the type/bug label Oct 17, 2016
@dasJ dasJ modified the milestones: 0.2.2, 0.2.1 Oct 17, 2016
@dasJ dasJ self-assigned this Oct 17, 2016
dasJ added a commit to dasJ/autoenv that referenced this issue Oct 18, 2016
@dasJ
Copy link
Contributor

dasJ commented Oct 18, 2016

Does #147 fix this for you?

@dirk-olmes
Copy link
Author

Yes, it does. Works like a charm with mounted filesystems and regular folders.

Thanks for the quick fix.

@dasJ dasJ closed this as completed in #147 Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants