kvirc / KVIrc

The KVIrc IRC Client
http://www.kvirc.net/
GNU General Public License v2.0
238 stars 75 forks source link

exec command bug? #1344

Closed DarthGandalf closed 9 years ago

DarthGandalf commented 9 years ago

Reported by blaze on 02 Dec 2012 12:16:53 UTC Example 1:

exec (" mocp -i ") {
    %output = $1
    %artist = $str.rightfromfirst($str.grep("^Artist",%output,"r"),": ")
    %title = $str.rightfromfirst($str.grep("^SongTitle",%output,"r"),": ")
    echo %artist
}

Works as expected.

Example 2:

exec (" mocp -i ") {
    %output = $1
    %artist = $str.rightfromfirst($str.grep("^Artist",%output,"r"),": ")
    %title = $str.rightfromfirst($str.grep("^SongTitle",%output,"r"),": ")
    echo %artist %title
}

Creates multiline output with a bunch of empty lines.


Migrated from: https://svn.kvirc.de/kvirc/ticket/1344

pragmaware commented 9 years ago

Try

mocp -i > somefile.txt

in a terminal and post it here.