On Sep 23, 2008, at 20:14 , mabshoff wrote:
> On Sep 23, 7:30 pm, "Justin C. Walker" <[EMAIL PROTECTED]> wrote:
>> On Sep 23, 2008, at 11:15 , CristianCantoro wrote:
>
> <SNIP>
>
>>> Thanks Michael, that worked!
>>> just to know... what does "source local/bin/sage-env" do?
>>> I will start the translation as soon as I can.
>>
>> 'source' is a shell built-in that reads shell commands from the named
>> file (until EOF) and then goes back to its previous source of input.
>> It executes the commands in its own process, not in a subshell, so  
>> the
>> effects remain after the end of the file.
>>
>> See the man page for the shell you are using for details (I'm not  
>> sure
>> that all shells support this; and the name of the command may change.
>> '.' is a synonym for 'source' [at least for "bash"]).
>
> IIRC "." is sh syntax, but also works with bash. "source" does not
> work on csh and its descendants, i.e. tcsh to mention the most common.
> Any Unix person knows that csh and tcsh are canonically evil ;). To
> get everybody fired up: Emacs sucks, vi is the one true editor.
> Recently I have felt that notepad.exe is the answer to all questions,
> but I need to lie down for a while ....

That's odd.  "man tcsh" definitely says

        source [-h] name [args ...]
                The shell reads and executes commands from name.  The  
commands are not
                placed on the history list.  If any args are given,  
they are placed in
                argv.  (+) source commands may be  nested;  if  they   
are  nested  too
                deeply  the  shell  may  run  out  of file  
descriptors.  An error in a
                source at any level terminates all nested source  
commands.   With  -h,
                commands  are  placed  on  the history list instead of  
being executed,
                much like `history -L'.

(and I tried this; it works).  At least on Mac OS X (10.5.4 to be  
specific), 'source' does what it should with bash, sh, zsh, tcsh, and  
csh.  YMMV :-}

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to