ezkur / yad

Automatically exported from code.google.com/p/yad
GNU General Public License v3.0
0 stars 0 forks source link

Form Field problem #160

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write only this:
{{{
!/bin/sh
FORM=$(yad --form --field="Name" --field="Surname")
name=$( echo "$FORM" | cut d"|" -f 1)
surname=$( echo "$FORM" | cut d"|" -f 2)
yad --text=$name
yad --text=$surname
}}}
2. Execute that above
3. Entrer 1st field with 2 or more words (ex.: Jean Paul)
4. Enter anything in Surname (ex.: Sartre)

What is the expected output? What do you see instead?

Should be F1="Jean Paul" and F2="Sartre". But F1(name) will be "Jean" and F2 
(surname) will be "Paul", and Surname "Sartre" will be lost.

What version of the product are you using? On what operating system?

0.19.1

Please provide any additional information below.

Nothing more. I wrote it in a sigle file, no other lines or commands in script.

Original issue reported on code.google.com by nerunblogs on 22 Feb 2013 at 10:51

GoogleCodeExporter commented 8 years ago
use quotation. yad --text="$name", yad --text="$surname"

Original comment by ananasik on 23 Feb 2013 at 5:29

GoogleCodeExporter commented 8 years ago
Worked like a charm!

Original comment by nerunblogs on 23 Feb 2013 at 5:56