Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

tcsh sourcing bash file fails

Status
Not open for further replies.

wtr

Full Member level 5
Full Member level 5
Joined
May 1, 2014
Messages
299
Helped
29
Reputation
58
Reaction score
25
Trophy points
1,308
Activity points
4,108
Hello all here is the current situation

Shell my terminal opens into is tcsh. The script i'm trying to run
Code:
#!/bin/bash

VIVADO_VER=2015.4
DISPLAY_NAME="USRP-X3x0"
REPO_BASE_PATH=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)

declare -A PRODUCT_ID_MAP
PRODUCT_ID_MAP["X300"]="kintex7/xc7k325t/ffg900/-2"
PRODUCT_ID_MAP["X310"]="kintex7/xc7k410t/ffg900/-2"

source $REPO_BASE_PATH/tools/scripts/setupenv_base.sh

source ./script.sh
or
source script.sh

Results is
VIVADO_VER=2015.4: command not found.

Why is it freaking out? Given that the script is not tcsh i wouldn't need the setenv command.

Regards,
Wes
 

you could try
Code:
setenv VIVADO_VER 2015.4
echo $VIVADO_VER
the above works using tcsh under kbuntu
 

I know setenv works for tcsh. The problem I have is i want to pull in script that has been written in bash. I don't particularly want to change the script, since it belongs to someone else.

I can log into bash shell, but then all my profiles and aliases etc are lost.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top