-
If I have both python from global and local directory like this :
```
jylenhof@pcportablejyl:~/toto$ rtx list
jq 1.7
poetry 1.7.1 ~/.config/rtx/config.toml 1.7.1
python 3.9.18…
-
## Problem statement
Scripts often don't have a file extension. This means that the `files = []` attribute won't be able to target them efficiently. The user would have to manually pass all of the …
-
The `shfmt` tool altering the following valid code, making it invalid:
```bash
coproc foo {
echo test
}
exec {foo[1]}>&- # converts to: exec {foo[1]} >&-
```
-
A bash command split on multiple lines without a space before `\` gets reformatted.
```console
$ printf 'my_command\\\n split\n'
my_command\
split
$ shfmt -ln bash -i 4 <
-
**What happened**:
When I try to bump golang version refer to this doc: https://github.com/kubevirt/kubevirt/blob/main/docs/update-go-version.md
I change GIMME_GO_VERSION in hack/builder/Docker…
-
shfmt is made for formatting script, definitely.
````markdown
```shell
#!/bin/env bash
date
```
````
But shell block quote in markdown is not ONLY about that
Yes, this would be val…
-
Example usage:
```
docker run -v "$PWD:/workdir" --workdir=/workdir -it mvdan/shfmt -w ./script.sh
```
If changes are made the uid/gid of script.sh is changed to 0:0, likely because the proces…
-
See https://github.com/mvdan/sh/issues/229#issuecomment-862734437.
The existing https://pkg.go.dev/mvdan.cc/sh/v3/syntax#FunctionNextLine option is available via `shfmt -fn`. It works fairly well:
…
-
Currently shfmt strips trailing spaces between the last word of line and a backslash:
```
a_command \
with \
many \
options \
and \
arguments
```
becomes
```
a…
-
`shfmt --minify` is inserting a backslash `\` and a newline if there’s an assignment following a closing parenthesis `)`. For example:
```sh
$ cat example.sh
#!/bin/sh
case $1 in
option)
…