Skip to content

Commit 7cd8f4c

Browse files
committed
Fix potential issue in dsf alias with spaces
If there are no quotes around the arguments the dsf alias won't work with spaces when used in bash. (Does seem to work in zsh.) Goes to issue #328 / PR #358
1 parent f65cbdf commit 7cd8f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ diff -u file_a file_b | diff-so-fancy
3131
You could, of course, create a function for it too. In your `~/.bashrc` or `~/.zshrcz` for example:
3232

3333
```shell
34-
function dsf() { diff -u $1 $2 | diff-so-fancy; }
34+
function dsf() { diff -u "$1" "$2" | diff-so-fancy; }
3535
```
3636

3737
And than you can just type `dsf file_a file_b` to get nice looking diff output.

0 commit comments

Comments
 (0)