Commit 1d2c1e8a authored by Pete "Peteches" McCabe's avatar Pete "Peteches" McCabe
Browse files

Fixed output issues webith websearch plugin.

- if user has rm set as an alias to 'rm -i' user is prompted to whether to
  remove the nohup.out file.

 $ ddg fools
	nohup: ignoring input and appending output to ‘nohup.out’
	rm: remove regular empty file ‘nohup.out’?

- if output redirected to a file nohup will not create nohup.out and rm is
  unecessary.
parent 43aa3783
...@@ -37,8 +37,7 @@ function web_search() { ...@@ -37,8 +37,7 @@ function web_search() {
done done
url="${url%?}" # remove the last '+' url="${url%?}" # remove the last '+'
nohup $open_cmd "$url" nohup $open_cmd "$url" >/dev/null 2&>1
rm nohup.out
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment