Monday, May 02, 2022

Re: READMEs files for ports

Le Mon, 2 May 2022 14:08:23 +0300,
Mihai Popescu <mihscu@gmail.com> a écrit :

> For gnome readme, there is this sequence:
>
> # cat <<'EOF' >>/etc/login.conf
>
> gnome:\
> :datasize-cur=1024M:\
> :tc=default:
>
> EOF
>
> It is a verbatim copy of what is displayed on the screen, Still I was
> not able to figure out what key to press or how to type to accomplish
> this :). I gave up and edited the file directly.
>
> Thanks.
>

just for posterity the following text is a shell code

cat <<'EOF' >>/etc/login.conf

gnome:\
:datasize-cur=1024M:\
:tc=default:

EOF


this tells cat to take input until it sees EOF and add the text to
/etc/login.conf file. Then we feed it the text we want to append, and
we tell it we finished by typing EOF. This is a command to type from a
shell.

However, if it's not clear, maybe we should reword that part to tell
"add theses lines to /etc/login.conf" or something like that.

No comments:

Post a Comment