Coder Social home page Coder Social logo

Comments (2)

ahnick avatar ahnick commented on June 3, 2024

Thanks for reporting this issue @aniqueta and I'm glad you are finding encpass.sh useful.

The main problem around supporting dot files will be trying to do it in a POSIX compliant way and supporting as many legacy shell versions as possible. The shopt solution, while a good one for Bash, unfortunately is not available in other shells. The other thing to note is that this affects not just the locking or unlocking of the key files, but other commands such as listing the buckets/secrets.

One solution may be to introduce the -A option in places where encpass.sh reads the contents of the "keys" and "secrets" directories. I'm exploring this option, but it does not work as I would expect with the -d option (listing just directories), which means that additional changes would need to be introduced in places where that option is currently used. Also, I'm not entirely certain "ls" is the most robust way to handle the reading of these directories. It may be better to switch to the find command. Find apparently was introduced in Version 5 of Unix (https://en.wikipedia.org/wiki/Find_(Unix)#History), so while not as old as "ls" I doubt anyone using encpass.sh is probably using a Unix older than version 5.

In any case, it will take a bit of time to think through the proper solution and weigh potential trade offs with various approaches, but I think supporting hidden scripts for use with encpass.sh should be implemented.

from encpass.sh.

aniqueta avatar aniqueta commented on June 3, 2024

Makes sense. In one of my cases, I'm using macOS with zsh, and shopt -s dotglob normally does not work. Since encpass.sh starts with #!/bin/sh the shell interpreter changes and shopt -s dotglob does work. For zsh, there are also other ways to mimic the shopt command, such as: Zshopt

from encpass.sh.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.