Skip to content

foreign character when make file #1718

Closed Answered by joelim-work
og900aero asked this question in Q&A
Discussion options

You must be logged in to vote

But how does regular space become non-breaking space?

That is literally what is in the config snippet you provided. Below is the corresponding hexdump when the content is encoded in UTF-8, which contains the byte sequence c2 a0:

00000000  63 6d 64 20 4e 65 77 c2  a0 66 69 6c 65 6e 61 6d  |cmd New..filenam|
00000010  65 3a 20 25 7b 7b 0a 20  20 20 20 49 46 53 3d 22  |e: %{{.    IFS="|
00000020  c2 a0 22 0a 20 20 20 20  74 6f 75 63 68 20 2d 2d  |..".    touch --|
00000030  20 22 24 2a 22 0a 7d 7d  0a                       | "$*".}}.|
00000039

My original goal is to be able to create a file name in such a way that if it contains a space, it is part of the file name, and of course I don't…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@joelim-work
Comment options

Answer selected by og900aero
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants