01-24-2011
I put forward that "in my opinion" it is a bash-ism, I am not stating a known fact. The reason I say this is that
source was in the csh line of shell, but not part of the orginal Bourne shell, nor was it in ksh. Somehow it was re-introduced and I would suspect this is because of bash.
In zsh source is not the same as
. so it may give unexpected results.
dash is a modern shell, BTW. It is /bin/sh on Ubuntu, so scripts will break if one uses
source, and there are more Posix shells on e.g. HP-UX or Solaris (/usr/xpg4/bin/sh). One would have to test if it worked there. In the HP-UX man page there is no mention of "source"
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02267598/c02267598.pdf
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all.
I'm currently building my own webmail server but I will need to collect my mail from several different account scattered around the 'Net.
I know fetchmail can do this. The problem I have is that my main POP3 mailbox at my ISP lumps all users' e-mails into one box.
This means that... (0 Replies)
Discussion started by: DraconianTimes
0 Replies
2. Ubuntu
I have a Toshiba Satellite 1135 laptop, and i want to install a fedora core edition in my external USB hard drive.
I have
Intel celeron 1.8 ghz processor
256 mb ram.
Please suggest if there are other suitable linux OS which would be better than fedora core. (2 Replies)
Discussion started by: sunilryl
2 Replies
3. AIX
hi all
im making a script for backing up a specific filesystem that is an output of our DB13(SAP) into tape..which is around 40g +
which is suitable tar or backup command
i heard tar has limitations ..i heard it can only backup upto 2 gig??? is this ryt?
and ill put this into cron.
... (6 Replies)
Discussion started by: redmanshogun
6 Replies
4. Shell Programming and Scripting
Hi,
I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below.
I will be using the config file as mentioned below:
(config.txt)
country:a,b
city:1,2
type:b1... (1 Reply)
Discussion started by: clazzic
1 Replies
5. Shell Programming and Scripting
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
Discussion started by: muraliinfy04
4 Replies
6. AIX
Hi,
I am running a JDBC:ODBC code to access .mdb file in my windows system successfully but, not able to access MS Access mdb file in AIX Unix box. when I am trying to run the same piece of code in AIX Unix box it is saying "No Suitable Driver". I need some immediate help. (0 Replies)
Discussion started by: thirunp
0 Replies
7. Red Hat
Hi folks,
I am trying to configure Apache webserver and also a virtual host inside this webserver.
For Global server config: /var/www/html/index.html
For virtual host config: /var/www/virtual/index.html
Both client10 & www10 are pointing to 192.168.122.10 IP address.
BUT, MY... (1 Reply)
Discussion started by: freebird8z
1 Replies
8. Android
May I assume that there is no point to format your SD Card (assume you have the 32 GB size) to NTFS if the device can support SD Card of up to 32 GB and FAT32 maximum limit is also exactly 32 GB?
"Crest Accountants
Suite E316, Level 3 Oracle East Building 3 Oracle Boulevard Broadbeach QLD 4218,... (1 Reply)
Discussion started by: PheekaJabal
1 Replies
9. UNIX and Linux Applications
Hi,
It may sound silly or stupid, but I really have a problem choosing a theme for my emacs.
I am using Ubuntu (12.04) and I use emacs on the x-console (emacs -nw) I have added the "emacs-goodies" package and tried all the themes in it to no avail.
My eyes are not comfortable with all these... (0 Replies)
Discussion started by: faizlo
0 Replies
10. Shell Programming and Scripting
I want to create a config file that has parameters that can be specified using - or -- (without an equals sign), as well as the ability to output the file using - or --. Could somebody point me to a generic script to do this? Say for example, I wanted to run MainScript and have it set alpha to 2... (1 Reply)
Discussion started by: multiverse22
1 Replies
LEARN ABOUT FREEBSD
nsd-checkconf
nsd-checkconf(8) nsd 3.2.12 nsd-checkconf(8)
NAME
nsd-checkconf - NSD configuration file checker.
SYNOPSIS
nsd-checkconf [-v] [-h] [-o option] [-z zonename] [-s keyname] configfile
DESCRIPTION
nsd-checkconf reads a configuration file. It prints parse errors to standard error, and performs additional checks on the contents. The
configfile format is described in nsd.conf(5).
The utility of this program is to check a config file for errors before using it in nsd(8) or zonec(8). This program can also be used for
shell scripts to access the nsd config file, using the -o and -z options.
OPTIONS
-v After reading print the options to standard output in configfile format. Without this option, only success or parse errors are
reported.
-h Print usage help information and exit.
-o option
Return only this option from the config file. This option can to be used in conjunction with the -z option. The special value zones
prints out a list of configured zones.
This option is primarily used by nsdc to parse the config file from the shell. If the -z option is given, but the -o option is not
given, nothing is printed.
-s keyname
Prints the key secret (base64 blob) configured for this key in the config file. Used to help shell scripts parse the config file.
-z zonename
Return the option specified with -o for zone 'zonename'.
If this option is not given, the server section of the config file is used. This option is primarily used by nsdc to parse the con-
fig file from the shell.
The -o, -s and -z option print configfile options to standard output.
FILES
/etc/nsd3/nsd.conf
default NSD configuration file
SEE ALSO
nsd(8), nsdc(8), nsd.conf(5), nsd-notify(8), nsd-patch(8), nsd-xfer(8), zonec(8)
AUTHORS
NSD was written by NLnet Labs and RIPE NCC joint team. Please see CREDITS file in the distribution for further details.
NLnet Labs jul 19, 2012 nsd-checkconf(8)