Visitar URL original
[readme] fix stale example outputs · ljharb/shell-quote@2de86f5 · GitHub
Skip to content

Commit 2de86f5

Browse files
committed
[readme] fix stale example outputs
1 parent a0d03e3 commit 2de86f5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ a 'b c d' \$f '"g"'
2929

3030
``` js
3131
var parse = require('shell-quote/parse');
32-
var xs = parse('a "b c" \\$def \'it\\\'s great\'');
32+
var xs = parse('a "b c" \\$def \'it\'\\\'\'s great\'');
3333
console.dir(xs);
3434
```
3535

3636
output
3737

3838
```
39-
[ 'a', 'b c', '\\$def', 'it\'s great' ]
39+
[ 'a', 'b c', '$def', "it's great" ]
4040
```
4141

4242
## parse with an environment variable
@@ -64,7 +64,7 @@ console.dir(xs);
6464
output
6565

6666
```
67-
[ 'beep --boop=/home/robot' ]
67+
[ 'beep', '--boop=/home/robot' ]
6868
```
6969

7070
## parsing shell operators
@@ -92,7 +92,7 @@ console.dir(xs);
9292
output:
9393

9494
```
95-
[ 'beep', { op: '>' }, 'boop', { comment: '> kaboom' } ]
95+
[ 'beep', { op: '>' }, 'boop', { comment: ' > kaboom' } ]
9696
```
9797

9898
# methods

0 commit comments

Comments
 (0)