diff mbox series

nftables: tests: shell: Replace "%" with "#" or "$"

Message ID 20180701060608.GA6067@arushi-HP-Laptop-15-bs1xx
State Accepted
Delegated to: Pablo Neira
Headers show
Series nftables: tests: shell: Replace "%" with "#" or "$" | expand

Commit Message

Arushi Singhal July 1, 2018, 6:06 a.m. UTC
Shell prompt ends with:
"%", indicates a C shell.
"$", indicates shell that's compatible with the Bash.
"#", indicates shell is running as the system's root.
So, "%" is replaced with "$" or "#".

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
---
 tests/shell/README | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Florian Westphal July 2, 2018, 3:13 p.m. UTC | #1
Arushi Singhal <arushisinghal19971997@gmail.com> wrote:
> Shell prompt ends with:
> "%", indicates a C shell.
> "$", indicates shell that's compatible with the Bash.
> "#", indicates shell is running as the system's root.
> So, "%" is replaced with "$" or "#".

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/tests/shell/README b/tests/shell/README
index e6d83bc..e0279bb 100644
--- a/tests/shell/README
+++ b/tests/shell/README
@@ -5,24 +5,24 @@  It can run arbitrary executables which can perform any test apart of testing
 the nft syntax or netlink code (which is what the regression tests does).
 
 To run the test suite (as root):
- % cd tests/shell
- % ./run-tests.sh
+ $ cd tests/shell
+ # ./run-tests.sh
 
 Test files are executables files with the pattern <<name_N>>, where N is the
 expected return code of the executable. Since they are located with `find',
 test-files can be spread in any sub-directories.
 
 You can turn on a verbose execution by calling:
- % ./run-tests.sh -v
+ # ./run-tests.sh -v
 
 And generate missing dump files with:
- % ./run-tests.sh -g <TESTFILE>
+ # ./run-tests.sh -g <TESTFILE>
 
 Before each call to the test-files, `nft flush ruleset' will be called.
 Also, test-files will receive the environment variable $NFT which contains the
 path to the nftables binary being tested.
 
 You can pass an arbitrary $NFT value as well:
- % NFT=/usr/local/sbin/nft ./run-tests.sh
+ # NFT=/usr/local/sbin/nft ./run-tests.sh
 
 By default the tests are run with the nft binary at '../../src/nft'