Questions tagged [shebang]

The #! marker at the beginning of scripts is called a shebang.

The #! marker at the beginning of scripts is called a shebang.

See

486 questions
-1
votes
3 answers

Is scripts' use of a shebang line differing from the default shell cause for concern?

my scripts are developed using a shebang line as "#!/bin/ksh" and the default shell is $ echo $SHELL /bin/ksh i am moving all these scripts without changing the shebang line to a new machine where the default shell is $ echo…
Kevin
  • 183
  • 2
  • 11
-1
votes
1 answer

make #!/usr/bin/env python -u shebang portable

I have this non-portable shebang: #!/usr/bin/env python -u It is non portable because python -u is fed as one single arg to env on my system. Challenge: make this shebang portable changing the shebang only - that is to say a one-liner. In other…
dnozay
  • 23,846
  • 6
  • 82
  • 104
-2
votes
1 answer

Alternative to using shebang

I am trying to set up my system so that php can be run without including the shebang in every file. Is there an alternative to using #!/usr/bin/php in every php file I write?
Bobby Bob
  • 31
  • 1
  • 5
-2
votes
2 answers

Shebang line C. How does it work?

I was reading the Advanced Programming in UNIX and stumbled upon this example. What is the shebang line doing here? Here's the top part of the code. #!/usr/bin/awk -f BEGIN { printf("#include \"apue.h\"\n") printf("#include \n") …
-3
votes
1 answer

What is the shebang for Anaconda Python?

There are 2 python versions (Python Vanilla & Anaconda) both 3.7.3-64 bit. #!python3.7.3-64 - for Python vanilla What is the shebang for Anaconda? #!C:\ProgramData\Anaconda3\python.exe is not working.
Smart Manoj
  • 5,230
  • 4
  • 34
  • 59
-4
votes
2 answers

Is it necessary to include shebang #!/bin/bash in a header file?

There was a requirement to include #!/bin/bash in the first line of all files in a project to create static libraries, but during compilation of the object file, the compiler gave me the message: In file included from 0-isupper.c:1: main.h:1:2:…
Adetops
  • 3
  • 2
1 2 3
32
33