Comments (3)
Huh. Bash doesn't look at any user-writeable bash-completion directories by default (at least, not on Ubuntu). Somebody could add their own custom user-writeable directory by copying a bunch of scripts around, but it's not trivial.
I've revised the configure script so it prints the directory during the configure process, which is a small step forward. Right now I see two options:
-
assume that most people will be installing tarsnap with sudo. If somebody chooses to install with both
--prefix=
and--with-bash-completion-dir
, we assume that they'll understand whymake install
fails. -
do some autoconf magic to check one or more of the following:
- if $BASH_COMPLETION_DIR is in the same directory structure as
${prefix}
, and give an error if it isn't. (assuming that the user can install to the same place asprefix
) - if $BASH_COMPLETION_DIR has the same permissions as
${prefix}
I get the feeling that 2) is me inventing horrible solutions to a problem that doesn't exist (/ isn't serious), though. I mean, if I were in python, I'd totally whip up something that does those checks in 10 minutes. But trying to do such things in autoconf sounds like a recipe for masochism.
from tarsnap.
This is turned off by default, right? In that case I'm not too worried... people who turn it should understand what's going on. It may get turned on in packaging systems but the maintainers of those should figure out where to put the files.
from tarsnap.
Yes, --with-bash-completion-dir
is disabled by default. And this is no problem for package maintainers, since packages will be installed as root. (or maybe as fake-root into a chroot, but that's also no problem in terms of writing to /usr/share/bash-completions/ )
from tarsnap.
Related Issues (20)
- lseek (_llseek) issue introduced in 1f56dc7c35b, possibly only on Linux i686 HOT 11
- Workaround for Windows Subsystem for Linux bug with link() HOT 1
- Add support for .gitignore files HOT 2
- escaping bug/typo in tarsnap(1) manpage HOT 1
- Machine name doesn't work with accents ? HOT 5
- master fails to build on old gcc (below version 9) HOT 9
- apt-key is deprecated - update installation instructions HOT 5
- Tarsnap Website Screen Reader Compatibility HOT 3
- Look for tarsnap.conf in ~/.config/tarsnap/ HOT 1
- Optional support for CACHEDIR.TAG files HOT 2
- New release? HOT 2
- Build fails on NetBSD HOT 4
- build: The <sys/sysctl.h> header is deprecated
- False warnings from clang-scan
- tarsnap can be tricked into skipping file using "touch -r" HOT 5
- libressl 3.6 will add `OPENSSL_cleanup()` HOT 1
- Deleting of archives taking up a lot of server -> client bandwidth HOT 6
- workaround for libc/kernel disagreement about whether lchmod exists HOT 1
- --include option HOT 12
- Anchored excludes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tarsnap.