Skip to content

Commit

Permalink
Fixing typos (#1137)
Browse files Browse the repository at this point in the history
This PR fixes a few typos that I spotted in the project.
  • Loading branch information
deining committed Nov 13, 2023
1 parent b5e53eb commit 6269733
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Save the current directory on the top of the directory stack and then `cd` to `d
Available options:

+ `-n`: Suppress the normal directory change when removing directories from the stack, so that only the stack is manipulated.
+ `-q`: Supresses output to the console.
+ `-q`: Suppresses output to the console.

Arguments:

Expand All @@ -282,7 +282,7 @@ When no arguments are given, `popd` removes the top directory from the stack and
Available options:

+ `-c`: Clears the directory stack by deleting all of the elements.
+ `-q`: Supresses output to the console.
+ `-q`: Suppresses output to the console.

Arguments:

Expand Down Expand Up @@ -557,7 +557,7 @@ sed(/(\w+)\s(\w+)/, '$2, $1', 'file.txt');
```

Also, like unix `sed`, ShellJS `sed` runs replacements on each line from the input file
(split by '\n') separately, so `search_regex`es that span more than one line (or inlclude '\n')
(split by '\n') separately, so `search_regex`es that span more than one line (or include '\n')
will not match anything and nothing will be replaced.


Expand Down
2 changes: 1 addition & 1 deletion plugin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Various utilties exposed to plugins
// Various utilities exposed to plugins

require('./shell'); // Create the ShellJS instance (mandatory)

Expand Down
4 changes: 2 additions & 2 deletions src/dirs.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ exports.pushd = _pushd;
//@ Available options:
//@
//@ + `-n`: Suppress the normal directory change when removing directories from the stack, so that only the stack is manipulated.
//@ + `-q`: Supresses output to the console.
//@ + `-q`: Suppresses output to the console.
//@
//@ Arguments:
//@
Expand Down Expand Up @@ -160,7 +160,7 @@ exports.popd = _popd;
//@ Available options:
//@
//@ + `-c`: Clears the directory stack by deleting all of the elements.
//@ + `-q`: Supresses output to the console.
//@ + `-q`: Suppresses output to the console.
//@
//@ Arguments:
//@
Expand Down
2 changes: 1 addition & 1 deletion src/sed.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ common.register('sed', _sed, {
//@ ```
//@
//@ Also, like unix `sed`, ShellJS `sed` runs replacements on each line from the input file
//@ (split by '\n') separately, so `search_regex`es that span more than one line (or inlclude '\n')
//@ (split by '\n') separately, so `search_regex`es that span more than one line (or include '\n')
//@ will not match anything and nothing will be replaced.
function _sed(options, regex, replacement, files) {
// Check if this is coming from a pipe
Expand Down
2 changes: 1 addition & 1 deletion test/cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ test('copy file to same directory', t => {
t.is(result.stderr, "cp: 'test/resources/file1' and 'test/resources/file1' are the same file");
});

test('copy mutliple files to same location', t => {
test('copy multiple files to same location', t => {
const result = shell.cp('test/resources/file1', 'test/resources/file2', 'test/resources');
t.truthy(shell.error());
t.is(result.code, 1);
Expand Down
2 changes: 1 addition & 1 deletion test/rm.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test('file does not exist', t => {
t.is(result.stderr, 'rm: no such file or directory: asdfasdf');
});

test('cannot delete a directoy without recursive flag', t => {
test('cannot delete a directory without recursive flag', t => {
const result = shell.rm(`${t.context.tmp}/rm`);
t.truthy(shell.error());
t.is(result.code, 1);
Expand Down

0 comments on commit 6269733

Please sign in to comment.