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". -- Brandon D. Valentine http://www.brandonvalentine.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
