Skip to main content
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 ...
Entity Black's user avatar
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 ...
Philip Kendall's user avatar
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 ...
Aurélien Bourdon's user avatar
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 ...
Lewis Pringle's user avatar
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 ...
Doc Brown's user avatar
  • 221k
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'...
haxbits's user avatar
  • 81
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 ...
Kilian Foth's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible