The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
TCP/IP Source pradeep83rawat Shell Programming and Scripting 2 11-13-2007 11:57 AM
Does anybody know Kernel-2.4.33 source rpm URL?? sriram.ec UNIX for Advanced & Expert Users 2 08-21-2006 07:53 AM
vi, c/source/target g? yls177 UNIX for Dummies Questions & Answers 7 12-02-2002 11:46 AM
shar source mastaCow UNIX for Dummies Questions & Answers 4 04-02-2002 04:57 PM
qt from source nydel UNIX for Dummies Questions & Answers 1 12-25-2001 11:59 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-16-2006
learn learn is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 1
. and source

What's the difference of using "." and "source", such as
". .bashrc" and "source .bashrc"?
  #2 (permalink)  
Old 08-16-2006
muirhejs's Avatar
muirhejs muirhejs is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 17
From the source manpage, they seem to be equivalent:


Code:
        .  filename [arguments]
       source filename [arguments]
              Read  and  execute  commands  from filename in the current shell
              environment and return the exit status of the last command  exe-
              cuted from filename.  If filename does not contain a slash, file
              names in PATH are used to find the  directory  containing  file-
              name.   The  file  searched  for in PATH need not be executable.
              When bash is  not  in  posix  mode,  the  current  directory  is
              searched  if no file is found in PATH.  If the sourcepath option
              to the shopt builtin command is turned  off,  the  PATH  is  not
              searched.   If any arguments are supplied, they become the posi-
              tional parameters when  filename  is  executed.   Otherwise  the
              positional  parameters  are unchanged.  The return status is the
              status of the last command exited within the  script  (0  if  no
              commands  are  executed),  and false if filename is not found or
              cannot be read.

Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0