# Elasticsearch.in.sh: Bad substitution

**URL:** <https://discuss.elastic.co/t/elasticsearch-in-sh-bad-substitution/11809>\
**Category:** Elasticsearch\
**Created:** [May 4, 2013, 9:22am UTC](https://discuss.elastic.co/t/elasticsearch-in-sh-bad-substitution/11809 "2013-05-04T09:22:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Pawlaczek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_pawlaczek/32/2354_2.png) [@Adam\_Pawlaczek](https://discuss.elastic.co/u/Adam_Pawlaczek)\
**Post date:** [May 4, 2013, 9:22am UTC](https://discuss.elastic.co/t/elasticsearch-in-sh-bad-substitution/11809/1 "2013-05-04T09:22:06Z")

</div>

Hello,

I cloned git repo like this:

git clone [https://github.com/elasticsearch/elasticsearch.git](https://github.com/elasticsearch/elasticsearch.git)

I tried to run elasticsearch in foreground but got:

$ cd elasticsearch/bin  
$ ./elasticsearch -f  
./elasticsearch: 3: ./elasticsearch.in.sh: Bad substitution

Did I do something wrong or is it a bug?

Best Regards,  
Adam

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 4, 2013, 10:03am UTC](https://discuss.elastic.co/t/elasticsearch-in-sh-bad-substitution/11809/2 "2013-05-04T10:03:49Z")

</div>

Please download the official package from download page and not source code.

If you want to build es yourself, run mvn install.

HTH

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 4 mai 2013 à 11:22, Adam Pawlaczek [jezozwierzak@gmail.com](mailto:jezozwierzak@gmail.com) a écrit :

> Hello,
> 
> I cloned git repo like this:
> 
> git clone [GitHub - elastic/elasticsearch: Free and Open, Distributed, RESTful Search Engine](https://github.com/elasticsearch/elasticsearch.git)
> 
> I tried to run elasticsearch in foreground but got:
> 
> $ cd elasticsearch/bin  
> $ ./elasticsearch -f  
> ./elasticsearch: 3: ./elasticsearch.in.sh: Bad substitution
> 
> Did I do something wrong or is it a bug?
> 
> ## Best Regards, Adam
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:38am UTC](https://discuss.elastic.co/t/elasticsearch-in-sh-bad-substitution/11809/3 "2017-07-06T02:38:18Z")

</div>


