PNEWS(1)

πŸ’Œ PNEWS β€” the PNEWS(1) glow-up ✨

okay bestie, welcome to the General Commands Manual entry for Pnews, and honestly? she's a whole vibe. let's get into it 🫢


✨ NAME ✨

Pnews β€” a program for posting news articles πŸ’… (yes, that's it, that's the whole job, and she does it cute)


🌸 SYNOPSIS 🌸

Pnews newsgroup title

or, plot twist:

Pnews -h headerfile [oldarticle]

or, third option, the main character entrance:

Pnews

πŸ¦‹ DESCRIPTION πŸ¦‹

so Pnews is basically the friendly interface for posting news articles β€” like, it holds your hand through the whole thing. it asks you a bunch of questions, then lets you write your article, then posts it for you using the inews(1) program. easy peasy. πŸŽ€

and here's the little secret: if you type h and hit carriage return at literally any point, Pnews will tell you what it wants to know. she's not mysterious, she's just waiting for you to ask. πŸ™ˆ

okay now the signature lore, listen up:

  • if you drop a .signature file in your home directory, your inews program will usually append it to your message after you're done editing. so you don't even see it while you type β€” it just appears at the end. surprise! πŸ’–
  • if you'd rather see your signature while you're editing, rename your .signature file to .news_sig and it'll get appended before you begin to edit. slay.
  • ⚠️ important tea: .news_sig obeys the setting of DOTDIR, but .signature may not, because that one is out of Pnews's control. not her fault, she doesn't run that. 😭
  • and if both .news_sig and .signature exist? bestie you're getting two signatures appended. two. i don't make the rules. πŸ’€

now, the -h form β€” that one's for when you get invoked from trn or rn. if your editor can edit multiple files, and you want the article you're replying to to show up as an alternate file, define the environment variable NEWSPOSTER as:

Pnews -h %h %A

you can also modify the NEWSHEADER environment variable to change the header file that [t]rn passes to Pnews. iykyk ✨


πŸ’… ENVIRONMENT πŸ’…

the environment variables, aka the settings that run her world:

  • AUTHORCOPY β€” if defined, this contains the name of a file to which the finished article will be appended.
    • Default: article not saved. (so if you don't set it, it's gone, bye πŸ‘‹)
  • DOTDIR β€” where to find your dot files, if they aren't in your home directory. this is primarily for accounts which are shared by more than one person.
    • Default: $HOME
  • EDITOR β€” the editor you want to use, if VISUAL is undefined.
    • Default: whatever your news administrator installed, usually vi.
  • HOME β€” your home directory.
    • Default: $LOGDIR
  • LOGDIR β€” your home directory if HOME is undefined.
  • LOGNAME β€” your login name, if USER is undefined.
    • Default: value of whoami.
  • NAME β€” your full name.
    • Default: name from /etc/passwd, or ~/.fullname.
  • NEWSORG β€” either the name of your organization, or the name of a file containing the name of your organization. (for use at organizations where the ORGANIZATION environmental variable is in use for other purposes). if both NEWSORG and ORGANIZATION are set, NEWSORG will override ORGANIZATION. periodt.
  • ORGANIZATION β€” either the name of your organization, or the name of a file containing the name of your organization.
    • Default: whatever your news administrator chose.
  • REPLYTO β€” the contents of a "Reply-To:" header line to insert into your message.
    • Default: header line not inserted.
  • USER β€” your login name.
    • Default: $LOGNAME
  • VISUAL β€” the editor you want to use.
    • Default: $EDITOR

πŸ“ FILES πŸ“

the girlies she keeps tabs on:

  • $DOTDIR/.article
  • $DOTDIR/.news_sig
  • ~/dead.article

(yeah, dead.article. spooky. πŸ’€βœ¨)


πŸ‘‘ SEE ALSO πŸ‘‘

go read these too, they're the friend group:


😭 DIAGNOSTICS 😭

literally nothing here bestie. the section exists. it's giving silence. 🌈✨


πŸ’€ BUGS πŸ’€

not the speediest program in the world… but maybe that's a blessing to the net. 🧚


and that's the whole page, no cap πŸ’œ β€” this was the LOCAL build, PNEWS(1), signing off like the icon she is. take care of her, she's trying her best πŸŽ€πŸ’–