Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable has been prefixed by a quotation mark #775

Open
colinhercus opened this issue May 3, 2024 · 0 comments
Open

Environment variable has been prefixed by a quotation mark #775

colinhercus opened this issue May 3, 2024 · 0 comments

Comments

@colinhercus
Copy link

Describe the bug
Using Eclipse CDT I set an environment variable which is used in a bash script run by popen(). The value of the variable has been prefixed with a quotation mark.

To Reproduce
Steps to reproduce the behavior:

  1. IN application configuration define a variable
  2. Using CDT run a debug build of an application that includes a popen() of a script
  3. In the script do an echo $variable > test.txt
  4. Examine the file test.txt and see that the environment variable is prefixed with a quotation mark.

Expected behavior
The environment variable should have the value set.

Screenshots
Screenshot at 2024-05-03 16-34-53

#! /bin/bash
echo $NOVOHLA >novohla.txt
....
awk -v G=$G 'BEGIN {LG=length(G)} /^>/ {if(substr($1,2,LG) != G) {P=0; next} P=1;} P==1 {print}' $NOVOHLA/all.nuc_only.fa

cat novohla.txt
"/st2/IMGTHLA/novoHLA-X500

awk: cmd. line:1: fatal: cannot open file `"/st2/IMGTHLA/novoHLA-X500/all.nuc_only.fa' for reading: No such file or directory

Version Information (please complete the following information):
-Ubuntu MATE 22.04.04

  • Eclipse VersionVersion: 2024-03 (4.31.0)
    Build id: 20240307-1437
  • CDT Version from Help -> About -> Installation Details ->
  • Eclipse CDT Autotools Documentation 11.5.0.202312062348 org.eclipse.cdt.autotools.docs

Additional context
Nothing else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant