mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-04-05 04:24:52 +08:00
Using a variable as the format string means `%` characters in alias names would be interpreted as format specifiers.
Use `%b` format with the variable as an argument to safely interpret `\n` escapes.
Bug introduced in 9b91734f0b.
5 lines
111 B
Bash
Executable File
5 lines
111 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo v0.0.1 > ../../../../alias/test-%s-alias
|
|
echo test-%s-alias > ../../../../alias/test-pct-chain
|