Problems with terminal

What I found is that if you are using a terminal, the terminal will sometimes wordwrap a command and break a word in the middle.

Eg the terminal displays:

hugo new site

testsite

But in actuality the command you are providing is:

hugo new sitetestsite

If you see:

hugo new site

 testsite

with a leading space in front of testsite then the command will work.

I imagine this can happen with other hugo “new” commands as well.

This will sometimes happen and sometimes not depending on when / if your terminal breaks a word, which in turn depends on the width of the terminal screen and the number of characters it is displaying eg in the prompt.

when typing a command and it does nit fit on the terminal lkne width the line displays wrapped but it’s still one line.

unless your terminal is very special… never hab a terminal that does hard break words

educated guess you are copy pasting code into the terminal which contains some invisible chars for formatting/unicode into an ascii terminal…

make sure to copy plain text.

I just manually typed in the following:

Screenshot From 2026-05-18 08-54-13

With terminal screen narrowed - I could not narrow it further to the point where “site” are the last characters on the top line, if I was able to narrow further, I could have gotten just “site” on the top line. There is a hard break:

Screenshot From 2026-05-18 08-56-21

I am using the default Gnome / Fedora 43 Terminal program Christian Hergert / ptyxis · GitLab

Maybe I should switch terminal programs…

if the result is really two lines nd the command is broken .. yes you should

but…maybe that can be configured in fedora, terminal…

looks like it’s an addon specialized terminal

I’m not buying this.

If this were the case, every installation of Ubuntu 25.10 and later would be broken, as would other Debian distributions that replaced GNOME Terminal with ptyxis. Unless there’s a setting somewhere that changes a soft break into a hard break, which would be goofy and really surprising.

just to be on the safe side:

the command is hugo new site NAME with a blank after site. all your code snippets dont have one…

and btw : imho nothing special with hugo so ptyxis issue tracker might be the better choice

Why? See my previous comment.

A few things here

A, I am not sure who posted this issue, but it wasn’t me. I had replied to issue:

https://discourse.gohugo.io/t/no-existing-content-in-directory/53987/6

to give a possible explanation as to why the OP was getting this occasional error.

I do not mean and did not post this as being an issue with Hugo.

B. I think it would be good to define before discussing further:

When @irkode mentioned a “hard break” I thought that meant a hard break on the screen, NOT the command that would be fed to the OS.

So when I use the term “hard break” I mean that a single word is broken and wrapped in the display only. I do not mean that it would be sent broken to the OS.

C. @jmooring

I’m not buying this.

I just want to be clear what you are thinking. Are you saying that you are not buying that the command would be broken if sent to the OS, or you are not buying that a displayed word in a command is broken if the terminal wraps it (ie nothing to do with the command being sent to the OS)?

@jmooring I am going to tell you how I felt about your comment:

I’m not buying this.

I think I understand what this means, but to make sure I understand the definition I looked it up:

https://idioms.thefreedictionary.com/I’m+not+buying+it

It means:

To not accept or believe something as the truth.

So you saying this, when I say that a long word is being wrapped in my terminal, I dont know how to interpret other than that you do not accept that as the truth.

I do not know how to interpret this other than it means that I am fabricating it, or to be blunt, that I am making it up.

TBH I found it quite upsetting.

What also made this worse for me was that I did not even post this issue. I dont know who or why it was posted.

I can easily reproduce on my system that this is happening. I even made screenshots and uploaded them to this issue.

I was simply explaining in another post, that I also experience the same issue sometimes, because a terminal is wrapping a word.

On top of that @irkode was trying to help me out, making suggestions such as checking the settings in my terminal program. He has helped me out many times and to great extend.

But your reply to him when he suggested the ptyxis issue tracker was:

Why? See my previous comment.

And to me this was very concerning as well - @irkode was trying to help and it seems to me like you were questioning him why he was suggesting some helpful things to check,

I had waited a few days for my question to you:

I just want to be clear what you are thinking. Are you saying that you are not buying that the command would be broken if sent to the OS, or you are not buying that a displayed word in a command is broken if the terminal wraps it (ie nothing to do with the command being sent to the OS)?

I asked you this because I wanted to give the opportunity to explain things, because there could have been a misunderstanding.

Also I would have asked you if you had actually tried my particular setup ie my OS with this terminal program.

But I did not see a reply.

And so I thought it was important to state my views on this.

This is by far one of the most unpleasant experiences on any forum for me and I hope it does not happen again.