bug#30451: I found problem not solved to my grep

2018-02-13 Thread Paul Jackson
I believe that this is a problem with using shell quoting and spacing. The following code works better for me: g() { if [ -n "$2" ] then i= for s in $2 do if [ -n "$i" ] then i="$i --include=*.$s" else i="--include=*.$s"

bug#30451: I found problem not solved to my grep

2018-02-13 Thread Budi
I tried to customize grep: Code: g () { if [ -n "$2" ] then i= for s in $2 do i="$i --include=*.$s" done else i='--include=*.txt --include=*.ini --include=*.*sh --include=*.c* --include=*.h --include=*.js --include=*.reg' fi grep -P -e \'$1\' -r $i } or with double quote "