On Tue, Oct 14, 2008 at 4:14 PM, Brandon Valentine <[EMAIL PROTECTED]> wrote: > > On Tue, Oct 14, 2008 at 4:13 PM, Brandon Valentine > <[EMAIL PROTECTED]> wrote: >> On Tue, Oct 14, 2008 at 4:03 PM, ./aal <[EMAIL PROTECTED]> wrote: >>> Good question. >>> >>> is # . <file> >>> the same as # source <file> >>> >>> I use "source /etc/profile" after chrooting >>> would ". /etc/profile" do the same thing? >> >> The answer is "depends on the shell". >> >> In the Bourne and Korn shells, you read in a file using the .filename >> syntax. In the C shell you read in a file using "source filename". >> In Bash you can use either syntax. I believe the same is true of the >> Z shell but am not certain. > > And by the unintentionally ambigious "read in a file" I mean "evaluate > the contents of the file as shell commands within the currently > running shell". >
Ah, I didn't realize that "source" was a command. I thought it was just another way to refer to "dotting in", as I've heard it called. After reading the man page for Bash, it looks like they do the same thing. (Searching the page for "source" was fun. Searching for "." will be even better) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NLUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nlug-talk?hl=en -~----------~----~----~----~------~----~------~--~---
