It is not recommended to invoke the Shell directly with a parameter of the script name (with or without the full path).
Didn't quite get you methyl. Can you elaborate ?
Yes. It is solaris 10 (x86-64 bit) as you've guessed.
Code:
$ uname -a
SunOS spikey213 5.10 Generic_147441-01 i86pc i386 i86pc
Output of
ls -lisad /bin/sh
ls -lisad /bin/bash
Code:
$ ls -lisad /bin/sh
65 2 lrwxrwxrwx 1 root root 13 Jun 23 00:07 /bin/sh -> ../../sbin/sh
$ ls -lisad /bin/bash
4892 1296 -r-xr-xr-x 1 root bin 654504 Feb 2 2011 /bin/bash
So, in solaris the default
man page of sh doesn't say anything explicitly about Bourne shell. But the word Bourne Shell is mentioned once (shown in red below)
Code:
$ man sh
Reformatting page. Please Wait... done
User Commands sh(1)
NAME
sh, jsh - standard and job control shell and command inter-
preter
SYNOPSIS
/usr/bin/sh [-acefhiknprstuvx] [argument]...
/usr/xpg4/bin/sh [+ abCefhikmnoprstuvx]
[+ o option]... [-c string] [arg]...
/usr/bin/jsh [-acefhiknprstuvx] [argument]...
DESCRIPTION
The /usr/bin/sh utility is a command programming language
that executes commands read from a terminal or a file.
----output snipped
.
.
.
The Bourne shell has a limitation on the effective UID for a
process. If this UID is less than 100 (and not equal to the
real UID of the process), then the UID is reset to the real
.
.
.
Hi,
I am currently writing BASH shell scripts. I am using BASH on a Powerbook G4 running Leopard. Could somebody please explain the difference between
#!/bin/bash and #!/bin/sh?
I have been using the latter (#!/bin/sh), and things have been working fine. But is that the correct one to use... (9 Replies)
Do we need to include the exclamatory mark in the shebang line??:confused:
What if we dont include it??:eek:
Actually what shebang line implies when we run a script??
shebang line--> #!/bin/ksh :p (6 Replies)
Can any one tell me how to replace a shebang line of a file using sed?
Eg: If a file contains the following shebang line
#!C:/InstantRails/ruby/bin/ruby
I would like to replace it with
#!/usr/local/bin/ruby
The shebang line of the file can be obtained from the command
cat... (3 Replies)
*** EDIT: I found something close to my solution under an IIS 7 Module Handle.*****
(Non-Homework question, simply an ease of use one)
Odd question here and maybe its my newness to cgi/Perl, but is it possible to have 2 shebang lines?
I write an test a ton of my homework code on my windows... (1 Reply)
Hi,
I always thought that #!/usr/bin/ksh means that the script would be executed in korn shell i.e. when we'll execute the script with this line as the very first line then the shell spawns a korn shell (in this case as we are using #!/usr/bin/ksh ) and the script gets executed.
But I am... (7 Replies)
Hi,
I have a trivial question to ask, I am seeing in some shell scripts the '-' (hyphen) character following the first line of shell script (i.e) the shebang notation as follows:
#!/bin/sh -
#! /bin/bash -
what does the hyphen signify? What will happen if it is not given explicitly? (2 Replies)
Hi ,
I know about the shebang line in shell scripting. Just want to know whether is there any difference in execution of the program by keeping and not keeping the shebang line. Because without shebang line also the script is working. correct me if am wrong. Any help on this will be helpful (5 Replies)
Discussion started by: rogerben
5 Replies
LEARN ABOUT OPENSOLARIS
shells
shells(4) File Formats shells(4)NAME
shells - shell database
SYNOPSIS
/etc/shells
DESCRIPTION
The shells file contains a list of the shells on the system. Applications use this file to determine whether a shell is valid. See getuser-
shell(3C). For each shell a single line should be present, consisting of the shell's path, relative to root.
A hash mark (#) indicates the beginning of a comment; subsequent characters up to the end of the line are not interpreted by the routines
which search the file. Blank lines are also ignored.
The following default shells are used by utilities: /bin/bash, /bin/csh, /bin/jsh, /bin/ksh, /bin/ksh93, /bin/pfcsh, /bin/pfksh, /bin/pfsh,
/bin/sh, /bin/tcsh, /bin/zsh, /sbin/jsh, /sbin/sh, /usr/bin/bash, /usr/bin/csh, /usr/bin/jsh, /usr/bin/ksh, /usr/bin/ksh93, /usr/bin/pfcsh,
/usr/bin/pfksh, /usr/bin/pfsh, and /usr/bin/sh, /usr/bin/tcsh, /usr/bin/zsh, and /usr/sfw/bin/zsh. /etc/shells overrides the default list.
Invalid shells in /etc/shells could cause unexpected behavior, such as being unable to log in by way of ftp(1).
FILES
/etc/shells list of shells on system
SEE ALSO vipw(1B), ftpd(1M), sendmail(1M), getusershell(3C), aliases(4)SunOS 5.11 20 Nov 2007 shells(4)