15
votes
Share private SSH keys with Bash on Windows
Based on the new build "Insider Build 17063" permissions for files works differently now.
In short you need to do:
sudo umount /mnt/c
sudo mount -t drvfs C: /mnt/c -o metadata
This will make ...
4
votes
commonly used practices for deploying package primarily composed of bash scripts
Like what are the best practices to deploy software with many bash scripts?
Given you refer to /usr/local/lib and /usr/local/bin, I'm assuming you're on some kind of Unix-ish machine - there, the ...
3
votes
How should I version control my bash profile?
Another solution would be to deport your specific configuration (as setting your own aliases or defining your own functions) to a different file than .bash_profile. This way, only your specific ...
3
votes
Accepted
If statement best practice
In this particular case, I don't think there is much to recommend approach A versus approach B, or vice versa.
However, I disagree that in general it's better to use
if A then
stuff
else
...
2
votes
Accepted
Choosing test method of bash command output with bats
If a shell script in the role of a "Subject Under Test" produces deterministic output on multiple channels, like
stdout, and/or
stderr, and/or
a log file
a return code
then for creating an ...
2
votes
commonly used practices for deploying package primarily composed of bash scripts
Traditionally (the slackware way) the userland scripts would exist in /usr/local/bin and /usr/local/sbin along with any binaries. By convention, it's reserved for local administrator/software, so you'...
2
votes
How can I maintain bash functions without brittle escaped newlines?
This has nothing to do specifically with functions - any kind of shell programming that involves long command lines is susceptible.
One helpful practice is to use set -e in your scripts, so that ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
bash × 37shell × 8
python × 6
programming-practices × 5
git × 4
scripting × 4
perl × 4
linux × 3
unix × 3
php × 2
c × 2
performance × 2
gpl × 2
deployment × 2
variables × 2
command-line × 2
ubuntu × 2
design × 1
design-patterns × 1
c++ × 1
algorithms × 1
unit-testing × 1
web-development × 1
programming-languages × 1
coding-style × 1