Author Topic: No "source" Command in Shell  (Read 2036 times)

dino

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://
No "source" Command in Shell
« on: August 04, 2004, 05:21:58 pm »
I tried to run "source ./zgcc.sh" to set my environment variables, but no "source" command!
I can type "export CPATH=/mnt/card/.include/" on the command line and it shows up when I type "echo $CPATH"
If I put several of these variables in a script(zgcc.sh) it does not work.
Thanks!
SL5500, Open Zaurus 3.5.2, 128MB SD

dino

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • http://
No "source" Command in Shell
« Reply #1 on: August 04, 2004, 05:38:09 pm »
For the time being, I dumped the contents of zgcc.sh into ~/.profile.  It worked!  I've compiled and run a "Hello World" program from my Z.  
What a rush!    Now to see if I can tackle some bigger source code.
SL5500, Open Zaurus 3.5.2, 128MB SD

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
No "source" Command in Shell
« Reply #2 on: August 04, 2004, 06:05:34 pm »
source is just a bashism for '.'
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.