EXPORT(3PVM)
π EXPORT β pvm_export, pvm_unexport π
okay bestie, welcome to EXPORT(3PVM), a little corner of the PVM manuals where we mark environment variables so they get shipped out through spawn. yes, that spawn. sit down, hydrate, let's go π«Ά
β¨ NAME β¨
pvm_export, pvm_unexport β mark environment variables to export through spawn
πΈ SYNOPSIS πΈ
so here's the whole vibe, in C:
int cc = pvm_export( char *name )
int cc = pvm_unexport( char *name )
and in Fortran?
Not available
yeah. Fortran said "not me" π it's just not a thing here, no cap.
π PARAMETERS π
nameβ the name of an environment variable you wanna add to (or delete from) the export list. that's the whole job. one little string, so much power π
π¦ DESCRIPTION π¦
okay so the tea: pvm_export and pvm_unexport exist purely for convenience β they're your little helpers for editing the environment variable PVM_EXPORT, and they do it while keeping the colon-separated list syntax it requires. like, the syntax stays correct, always, no messy hand-editing, periodt.
and here's the important part: the variable can also be modified by other means, and at the same time as the pvm_export functions are doing their thing. so like, share the sandbox, besties π€
now for the behaviours that make this so chill:
pvm_exportchecks whether a name is already inPVM_EXPORTbefore it includes it β so no dupes sneaking in. and exporting a name more than once? not considered an error. it's giving unbothered β¨pvm_unexportis equally chill β it will not complain if you hand it a name that isn't inPVM_EXPORT. no drama, no error, just vibes π¦
π EXAMPLES π
here's the C one, in all its glory:
/* PVM_EXPORT=SHELL:HOME */
pvm_export("DISPLAY");
pvm_export("TERM");
pvm_unexport("HOME");
/* PVM_EXPORT=SHELL:DISPLAY:TERM */
see how it started as SHELL:HOME, we added DISPLAY and TERM, yeeted HOME, and landed on SHELL:DISPLAY:TERM? character development π
literally the glow-up arc of an env var.
π ERRORS π
bestie, listen β no error conditions are currently returned bypvm_exportandpvm_unexport. none. zero. nothing to handle. you can relax π
π SEE ALSO π
pvm(1PVM)pvm_spawn(3PVM)
that's the page, bestie π this was EXPORT(3PVM) from the PVM crew, dated 15 May, 1996 β yeah, it's vintage, and it still ate π₯ go export something iconic. mwah π
π¦ where this page comes from
- debian bookworm: pvm-dev 3.4.6-5
- ubuntu jammy: pvm-dev 3.4.6-3.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms