Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-06-2008, 10:41 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
what's difference between '::respawn:/bin/sh' and '::respawn:-/bin/sh'?

::respawn:/bin/sh and ::respawn:-/bin/sh
The ::respwan:bin/sh means it will restart /bin/sh when /bin/sh was killed.
i don't know what ::respawn:-/bin/sh means,please tell me.
thanks a lot
Old 11-06-2008, 01:25 PM   #2
Registered: Jun 2008
Posts: 235

Rep: Reputation: 46

Originally Posted by rainballdh View Post
::respawn:/bin/sh and ::respawn:-/bin/sh
The ::respwan:bin/sh means it will restart /bin/sh when /bin/sh was killed.
i don't know what ::respawn:-/bin/sh means,please tell me.
thanks a lot
from my bash manual:
A login shell is one whose first character of argument zero is a -, or one started with
the --login option.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Is there any differences between ::respawn:-/bin/sh and ::respawn:/bin/sh? rainballdh Linux - Newbie 1 11-06-2008 10:17 AM
aliases and the 'sh' shell koodoo Linux - Newbie 14 08-05-2006 04:19 AM
Difference in /bin and /usr/bin tarheel92x Linux - Newbie 2 01-28-2006 09:06 AM
What is the difference between #!/bin/bash and #!/bin/sh? mTorbin Linux - Newbie 5 11-09-2005 12:10 PM
execl: couldn't exec `/bin/sh' Daredevil Linux - Newbie 2 04-12-2004 11:06 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:55 AM.

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