changeset 9501:d18256fd6450

<oerjan> sled bin/sed//2c/bin/sed "$@" && if [[ $* == "3" -a "$1" == "-i" ]]; then echo -n "$3//"; cat "$3"; fi
author HackBot
date Sat, 29 Oct 2016 19:18:48 +0000
parents ebc81ceadec9
children eea55617722b
files bin/sed
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/sed	Sat Oct 29 19:15:05 2016 +0000
+++ b/bin/sed	Sat Oct 29 19:18:48 2016 +0000
@@ -1,2 +1,2 @@
 #!/bin/bash
-/bin/sed "$@" && if [ $* == "3" ] && [ $1 == "-i" ]; then echo -n "$3//"; cat "$3"; fi
+/bin/sed "$@" && if [[ $* == "3" -a "$1" == "-i" ]]; then echo -n "$3//"; cat "$3"; fi