Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #265623
| From | Greg Wooledge <greg@wooledge.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: OT: coloured text? |
| Date | 2024-01-07 20:30 +0100 |
| Message-ID | <HTH0l-1vrM-5@gated-at.bofh.it> (permalink) |
| References | <HTGnD-1uZv-3@gated-at.bofh.it> <HTGGZ-1vln-3@gated-at.bofh.it> <HTGQG-1voC-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, Jan 07, 2024 at 07:12:38PM +0000, Michael Kjörling wrote: > On 7 Jan 2024 14:03 -0500, from greg@wooledge.org (Greg Wooledge): > > The shebang tells the kernel which shell to execute to interpret your > > script. So, you match it up to whichever shell you're writing for. > > Or perhaps rather which interpreter to use to execute the file. "Interpreter" is the traditional word for the program executed by the kernel, yes. > Examples of shebang lines which aren't for "shells" in the traditional > sense might be: > > #!/usr/sbin/nft -f > > #!/usr/bin/env python3 > > #!/usr/bin/perl Python and perl are both scripting languages. I don't know what nft is. > or if you are feeling evil... :-) > > #!/bin/sed -e 1d This is not a valid shebang. You're only permitted ONE argument after the interpreter name. You're going to execute /bin/sed '-e 1d' 'filename' with this.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
OT: coloured text? Hans <hans.ullrich@loop.de> - 2024-01-07 19:50 +0100
Re: OT: coloured text? Greg Wooledge <greg@wooledge.org> - 2024-01-07 20:10 +0100
Re: OT: coloured text? Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-07 20:20 +0100
Re: OT: coloured text? Michael Kjörling <2695bd53d63c@ewoof.net> - 2024-01-07 20:30 +0100
Re: OT: coloured text? Greg Wooledge <greg@wooledge.org> - 2024-01-07 21:00 +0100
Re: OT: coloured text? Greg Wooledge <greg@wooledge.org> - 2024-01-07 20:30 +0100
Re: OT: coloured text? Kent West <westk@acu.edu> - 2024-01-07 20:10 +0100
csiph-web