Project

General

Profile

Actions

Bug #37898

closed

Copy to clipboard button copies script with HTML entities

Added by Jeremy Lenz about 2 months ago. Updated 24 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When using the 'Copy to clipboard' button on the script that virt_who_configure gave me, it copied it to the clipboard with HTML entities. This causes an error when I try to run the script.

Lines like

 [ "$1" = "$2" ] && return 1 || version_lte $1 $2

actually show up as

[ "$1" = "$2" ] && return 1 || version_lte $1 $2

and cause

./virt.sh: line 15: syntax error near unexpected token `;&'
./virt.sh: line 15: `  [ "$1" = "$2" ] && return 1 || version_lte $1 $2'

Actions

Also available in: Atom PDF