SHCOMP(1)

πŸ“¦ version 93vu, in opensuse-leap 16.0

πŸ’… shcomp β€” compile a shell script 🐚

okay bestie, so this is shcomp, from the Korn shell utilities family (yes, that's SHCOMP(1) if you're being formal about it). she takes your cute little shell script and turns it into a binary file that ksh can slurp up and run, no cap. let's get into it ✨

🌸 SYNOPSIS 🌸

shcomp [ options ] [infile [outfile]]

πŸ¦‹ DESCRIPTION πŸ¦‹

so unless you pass -D, shcomp grabs a shell script β€” that's infile β€” and makes a binary format file, outfile, which ksh can read and execute with literally the same effect as the original script. same vibes, different format πŸ’…

⚠️ okay important: since aliases get processed as the script is read, alias definitions whose value needs variable expansion will not work correctly. that's just how it is, bestie, no cap. 😭

if you do pass -D, then all double quoted strings that are preceded by $ get output. these are the messages you need to translate into locale specific versions for internationalization. iykyk 🫢

if outfile is omitted, the results go to standard output. and if infile is also omitted, the shell script gets read from standard input. easy. πŸŽ€

✨ OPTIONS ✨

  • -D, --dictionary β€” generates a list of strings that need to go in a message catalog for internationalization. it's giving translation prep πŸ—‚οΈ
  • -n, --noexec β€” displays warning messages for obsolete or non-conforming constructs. your little lint bestie fr fr πŸ”
  • -v, --verbose β€” displays input from infile onto standard error as it reads it. it's literally narrating its own reading to you πŸ’€

πŸ”₯ EXIT STATUS πŸ”₯

  • 0 β€” successful completion, we ate πŸ‘‘
  • >0 β€” an error occurred. sad girl hours 😭

🌈 SEE ALSO 🌈

πŸ’– IMPLEMENTATION πŸ’–

version

shcomp (AT&T Research) 2003-03-02 ⭐

author

David Korn <dgk@research.att.com> πŸŽ€

Copyright (c) 1982-2012 AT&T Intellectual Property

license

http://www.eclipse.org/org/documents/epl-v10.html


okay that's the whole thing bestie, go compile something iconic πŸ’œ this was the SHCOMP(1) page, dated 2012-08-01 β€” mwah, slay, bye πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from