about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-03 21:53:21 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-03 21:53:21 +0200
commit77d7e8335578231351a25580bb4497f84e0bc219 (patch)
treebc36e86378046170c22dcd58bd41134c6388c6c9
parentfd1550d0d4d36d6351ba8c24e7193d780875f1fa (diff)
downloadlrep-77d7e8335578231351a25580bb4497f84e0bc219.tar.gz
lrep-77d7e8335578231351a25580bb4497f84e0bc219.tar.xz
lrep-77d7e8335578231351a25580bb4497f84e0bc219.zip
silent for !!!
-rwxr-xr-xlrep6
1 files changed, 5 insertions, 1 deletions
diff --git a/lrep b/lrep
index 3668746..399d858 100755
--- a/lrep
+++ b/lrep
@@ -71,7 +71,11 @@ while line = gets
         kill pid
 	output = input = pid = nil
         next  if zap
-	print ind(`#{$3}`)
+
+        cmd = $3
+        silent = cmd.gsub!(/>-$/, '')
+        o = `#{cmd}`
+	print ind(o)  unless silent
       else
 	if $1.empty?
 	  ps = nil