shell-scripts
A shell is a text-based terminal, used for manipulating programs and files. Shell scripts typically manage program execution.
Here are 809 public repositories matching this topic...
I am wondering if autoenv could not be used in complex CI environments where we have multiple steps and where we need to save/restore status between different steps.
We are currently doing appending variables inside some env_jenkins.properties
files and on some some steps (builders) and on others we do source env_jenkins.properties
in order to load them.
If autoenv
would work also for
I think it would be valuable to explicitly talk about whitespace requirements in [ ]
and [[ ]]
conditionals--this tripped me up when learning Bash and I know it's a pain point for a lot of developers.
The way I like to think about it is that [
and [[
are commands/builtins (like echo
, etc), as opposed to being part of Bash syntax. For this reason, the command name and each of its argumen
👷 Bash/Shell
最佳实践与安全编程
Google Shell Style Guide
- 编写可靠shell脚本的八个建议
https://www.xshell.net/shell/1577.html - Bash Pitfalls: 编程易犯的错误 - 团子的小窝
-
Updated
Apr 26, 2020 - Shell
-
Updated
Mar 19, 2020 - Shell
The -h
/--help
flag is broken:
$ with -h
/usr/bin/with: line 46: print_help: command not found
error: "-h" is not a valid executable
Looking at the source, I believe that line 46 should be calling print_usage
and/or print_options
, not print_help
(which doesn't exist).
When a compiled script is run from $PATH it appears to be unable to locate its own file path.
An example with the JRuby bash launcher:
[] ~/projects/jruby $ bin/jruby.bash -e 'puts ENV_JAVA["jruby.home"]'
/Users/headius/projects/jruby
[] ~/projects/jruby $ jruby.bash -e 'puts ENV_JAVA["jruby.home"]'
/Users/headius/projects/jruby
[] ~/projects/jruby $ shc -f bin/jruby.bash -o bin
Prerequisite for running on Debian:
$ apt install flex bison libelf-dev libssl-dev bc cpio libncurses5-dev xorriso wget make gawk gcc
Is kmod necessary?
Dash allows users to contribute docsets, as outlined in zealdocs/zeal#170. dasht should provide a command to automatically download and extract these as well.
(See also #4.)
Third-party docs
-
Updated
Dec 25, 2017 - JavaScript
Currently ARG_OPTIONAL_BOOLEAN
is displayed like so:
$ ./foo.sh --help
foo!
Usage: ./foo.sh [--(no-)no-deps]
-n,--no-deps,--no-no-deps: some description
With many of those the negating (no-)
text adds a lot of visual noise and can be borderline silly as in the above case. I would imagine that most people have no use for an option flag that equals the application's default va
-
Updated
Oct 28, 2017
-
Updated
Jan 19, 2020 - Shell
In the docs it says:
This plugin allows you to run any shell commands before or after webpack builds. This will work for both webpack and webpack-dev-server.
maybe it could specify it works with webpack --watch
too?
-
Updated
Oct 1, 2019 - Shell
-
Updated
Mar 30, 2020 - Shell
-
Updated
Aug 29, 2014 - Shell
-
Updated
May 20, 2020 - Shell
-
Updated
Jul 19, 2018 - Shell
-
Updated
May 13, 2020 - Vim script
-
Updated
Dec 6, 2019 - Shell
-
Updated
Jul 4, 2018 - Shell
-
Updated
Mar 23, 2018 - Java
Morbig fails with "Failure: Unsupported expansion in here document delimiter" on the following
script
cat << $x
kgjlkfdjgkdflkg
$x
bash accepts it both with with and without --posix, and dash gives an error.
I think that the behaviour of bash is correct since nothing in the standard says that the delimiter word may not contain variables, subshells, or globs. However these
-
Updated
Jun 4, 2018 - Shell
CONTRIBUTING.md
.shopt
andset
./dev/tcp
pdf