• Post Reply Bookmark Topic Watch Topic
  • New Topic

shell script headers  RSS feed

 
Jim Lang
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi y'all
I've been reading through some shell scripts and what I see as the first line differs. In some cases I know why.
For example, a shell script may start:

which is fine, I know it's an indicator to the executing shell which shell to use as the command interpreter.
However, sometimes I come across scripts where the first line starts:

but I'm not sure why...
Can someone please enlighten me?
Thanks,
Jim
 
James O'Dell
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
":" on the first line by itself is the "old" UNIX way of specifying the Bourne shell.
--Jim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!