From d615865d4d9a451d1362407177a48182c1f7f79b Mon Sep 17 00:00:00 2001 From: Dmitry Astapov Date: Thu, 27 Feb 2025 21:46:28 +0000 Subject: [PATCH] ;run: reword the quoting passage in docs --- hledger/Hledger/Cli/Commands/Repl.md | 2 +- hledger/Hledger/Cli/Commands/Repl.txt | 4 ++-- hledger/Hledger/Cli/Commands/Run.md | 2 +- hledger/Hledger/Cli/Commands/Run.txt | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hledger/Hledger/Cli/Commands/Repl.md b/hledger/Hledger/Cli/Commands/Repl.md index 614cb8d56..4aac5ed23 100644 --- a/hledger/Hledger/Cli/Commands/Repl.md +++ b/hledger/Hledger/Cli/Commands/Repl.md @@ -22,7 +22,7 @@ Syntax of the commands is intentionally simple: - everything after `#` is considered to be a comment and will be ignored, and will not be printed out - `echo ` will print out text, even if it could be recognized as a hledger command -You can use single quotes or double quotes to quote aguments that need quoting. +You can use single or double quotes to quote aguments that need it ('like this' or "like this"). ### Caveats: diff --git a/hledger/Hledger/Cli/Commands/Repl.txt b/hledger/Hledger/Cli/Commands/Repl.txt index 7f36e5b8c..f1ab6b6f8 100644 --- a/hledger/Hledger/Cli/Commands/Repl.txt +++ b/hledger/Hledger/Cli/Commands/Repl.txt @@ -23,8 +23,8 @@ considered to be a comment and will be ignored, and will not be printed out - echo will print out text, even if it could be recognized as a hledger command -You can use single quotes or double quotes to quote aguments that need -quoting. +You can use single or double quotes to quote aguments that need it +('like this' or "like this"). Caveats: diff --git a/hledger/Hledger/Cli/Commands/Run.md b/hledger/Hledger/Cli/Commands/Run.md index 6a73170ba..2395df4fd 100644 --- a/hledger/Hledger/Cli/Commands/Run.md +++ b/hledger/Hledger/Cli/Commands/Run.md @@ -25,7 +25,7 @@ Syntax of the command is intentionally simple: - `echo ` will print out text, even if it could be recognized as a hledger command - `run` is a valid command to use as well, so you can have `run` call `run` if you want to. -You can use single quotes or double quotes to quote aguments that need quoting. +You can use single or double quotes to quote aguments that need it ('like this' or "like this"). You can use `#!/usr/bin/env hledger run` in the first line of the file to make it a runnable script. If this complains about "binary `hledger run` not found", use `/usr/bin/env -S hledger run`. diff --git a/hledger/Hledger/Cli/Commands/Run.txt b/hledger/Hledger/Cli/Commands/Run.txt index d92f481ae..0f058cb84 100644 --- a/hledger/Hledger/Cli/Commands/Run.txt +++ b/hledger/Hledger/Cli/Commands/Run.txt @@ -29,8 +29,8 @@ and will not be printed out - echo will print out text, even if it could be recognized as a hledger command - run is a valid command to use as well, so you can have run call run if you want to. -You can use single quotes or double quotes to quote aguments that need -quoting. +You can use single or double quotes to quote aguments that need it +('like this' or "like this"). You can use #!/usr/bin/env hledger run in the first line of the file to make it a runnable script. If this complains about "binary hledger run