On 9 May 2026 at 22:08, bruce wrote:

From:   bruce <[email protected]>
Date sent:      Sat, 9 May 2026 22:08:49 -0400
Subject:        Re: Issue with copy and paste.
To:     [email protected],
        Community support for Fedora users <[email protected]>

>
> hmmm
>
> what editor did u try? redirect, vi, vim, etc?
>

Thanks for the quick reply.

Generally, I use geany, but sometimes just copy from terminal
window.

Example:
cat smal2
#!/bin/bash
clear
if [ "$EUID" -ne 0 ] ; then
    echo -e 'Need to be root user';exit 1
fi

hexedit
00000000   23 21 2F 62  69 6E 2F 62  61 73 68 0A  63 6C 65 61  72 0A 69 66  20
5B 20 22  24 45 55 49  #!/bin/bash.clear.if [ "$EUI
0000001C   44 22 20 2D  6E 65 20 30  20 5D 20 3B  20 74 68 65  6E 0A 20 20  20
20 65 63  68 6F 20 2D  D" -ne 0 ] ; then.    echo -
00000038   65 20 27 4E  65 65 64 20  74 6F 20 62  65 20 72 6F  6F 74 20 75  73
65 72 27  3B 65 78 69  e 'Need to be root user';exi
00000054   74 20 31 0A  66 69 0A                                          
t 1.fi.

Expect Linux text file of 0A and no 0D

Paste in claude.ai
#!/bin/bash clear if [ "$EUID" -ne 0 ] ; then     echo -e 'Need to be
root user';exit 1 fi

Paste in google AI mode
#!/bin/bash
clear
if [ "$EUID" -ne 0 ] ; then
    echo -e 'Need to be root user';exit 1
fi

So, claude.ai is replacing LF(0A) with space and thus making a
wrapped line.

But on the other end, google has a small limit of lines it lets you
paste.


>
> On Sat, May 9, 2026, 9:31 PM Michael D. Setzer II via users
> <[email protected]> wrote:
> Having issue with claude.ai.
> If I copy from terminal or editor and paste to the input box, it
> combines the lines together. So, it is a terrible string.
> If I copy 5 lines, it pastes as 1 long wrapping string.
>
> If I paste same 5 lines to google.com AI it pastes as 5 lines
> correctly..
>
> Seems it is a difference in CCS to handle the pasting.
> Seems google handles it as I expect, but claude.ia uses an HTML
> option that strips the LF and replaces with a space.
>
> claude.ai came up with a process to save text to file, use unix2dos
> and then use xsel? But was a pain.
>
> Another option is to just paste it, but then use shift-enter to insert
> CR in correct places. For 5 lines that is ok, but it pasting longer
> lines is a real pain. Finally agreeded that it should be able to handle
> it, but recommended to provide feedback.
>
> Gave a link, but it took me to a page, that then said it was sending
> a verification code. Had a place to enter code, but checked email,
> and no verification code came. Did get an email, but it was a link to
> go to a console login page. Went to link, but just got a page with
> spinning icon that never stopped.
>
> So Fedora paste the text with just 0A and no 0D. Know some linux
> uses the LF/CR. Is the a way to do this. Tried CTRL-V and
> SHIFT-CTRL-V but got same result.
> Using Fedora 43 and XFCE.
>
> Thanks.
> +------------------------------------------------------------+
> Michael D. Setzer II - Computer Science Instructor (Retired)
> mailto:[email protected]
> mailto:[email protected]
> mailto:[email protected]
> Guam - Where America's Day Begins
> G4L Disk Imaging Project maintainer
> http://sourceforge.net/projects/g4l/
> +------------------------------------------------------------+
>
>
>
> --
> _______________________________________________
> users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/[email protected]
> g
> Do not reply to spam, report it:
> https://forge.fedoraproject.org/infra/tickets/issues/new
>



+------------------------------------------------------------+
 Michael D. Setzer II - Computer Science Instructor (Retired)
 mailto:[email protected]
 mailto:[email protected]
 mailto:[email protected]
 Guam - Where America's Day Begins
 G4L Disk Imaging Project maintainer
 https://sourceforge.net/projects/g4l/
+------------------------------------------------------------+


-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to