summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index f04f016..1dfe1ba 100644
--- a/README.md
+++ b/README.md
@@ -210,3 +210,15 @@ for file in $(fd --type file); do
sd 'from "react"' 'from "preact"' "$file";
done
```
+
+### Edge cases
+replace/-with string needs extra `--` before it, if starts with double-minus
+(this is a limitation of the bash itself)
+
+```bash
+echo "test/test" | sd '/' -- '--inteneded--'
+test--inteneded--test
+
+echo "start/--/end" | sd --string-mode -- '--' 'middle'
+start/middle/end
+```