SHCOMP(1)
π 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
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
- opensuse-leap 16.0: ksh 93vu-bp160.1.33 Β· CPL-1.0 AND EPL-1.0
- opensuse-leap 16.0: ksh 93vu-bp160.1.33 Β· CPL-1.0 AND EPL-1.0
- opensuse-leap 16.0: ksh 93vu-bp160.1.33 Β· CPL-1.0 AND EPL-1.0
- opensuse-leap 16.0: ksh 93vu-bp160.1.33 Β· CPL-1.0 AND EPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms