Changeset ecf0a04b in mainline for tools/ew.py


Ignore:
Timestamp:
2019-06-24T15:47:05Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d86393c8
Parents:
fd244cd
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-24 15:46:46)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-24 15:47:05)
Message:

tools/ew.py: Fix gnome-terminal escaping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rfd244cd recf0a04b  
    6969
    7070def run_in_console(cmd, title):
    71         ecmd = cmd.replace('"', '\\"')
    7271        temu = termemu_detect()
    7372        if temu == 'gnome-terminal':
    74                 cmdline = temu + ' -- ' + ecmd
    75         else:
     73                cmdline = temu + ' -- ' + cmd
     74        else:
     75                ecmd = cmd.replace('"', '\\"')
    7676                cmdline = temu + ' -T ' + '"' + title + '"' + ' -e "' + ecmd + '"'
    7777
Note: See TracChangeset for help on using the changeset viewer.