LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-18-2012, 01:49 AM   #1
poplinux
Member
 
Registered: May 2012
Posts: 111

Rep: Reputation: Disabled
[bash] What's mean -n option? ("/bin/sh -n config.in")


Dear Sir.

I'm try to study some script's. And I'm fount some command string. see below.

Code:
/bin/sh -n config.in
I don't know "-n" option.

Please tell me about "-n" option.

Thank you.
 
Old 06-18-2012, 02:06 AM   #2
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
man bash:
Quote:
[...]
OPTIONS
In addition to the single-character shell options documented in the description of
the set builtin command, bash interprets the following options when it is invoked:
[...]
SHELL BUILTIN COMMANDS
[...]
set
[...]
−n Read commands but do not execute them. This may be used to check a shell script for
syntax errors. This is ignored by interactive shells.
[...]
Remember that /bin/sh could point to a different shell than bash.
 
1 members found this post helpful.
Old 06-18-2012, 02:31 AM   #3
poplinux
Member
 
Registered: May 2012
Posts: 111

Original Poster
Rep: Reputation: Disabled
Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
Tried to install a .bin but "bash: ./CmapTools64.bin: Permission denied" Xime1008 Linux - Newbie 6 05-16-2011 06:24 PM
Trying to build APT: "configure: error: cannot run /bin/bash buildlib/config.sub" Kenny_Strawn Ubuntu 6 08-29-2010 05:06 PM
(bash) echo "#!/bin/bash" event not found - trying to generate profiles automatically jimieee Programming 9 05-03-2006 10:24 AM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration