Skip to main content
edited body
Source Link
Alexander Mills
  • 10.9k
  • 27
  • 120
  • 214

I am getting this one when I open a terminal session:

sh: error importing function definition for `read.json'

sh: error importing function definition for `ts-project'

sh doesn't like these functions because they look like:

read.json(){
   ::
}

and

ts-project(){
   ::
{}

the real question is - why is sh touching/interpreting these files? I am on MacOS and seen this before, it's such a mystery. I would think only bash would be loading these files.

update: bash and sh are nothing out of the ordinary. when I type bash into the terminal, I get this:

alex$ bash
beginning to load .bashrc
finished loading .bashrc
bash-3.2$ 

when I type sh in the terminal, I get this:

alex$ sh
sh: error importing function definition for `read.json'
sh: error importing function definition for `ts-project'
sh-3.2$ 

I am getting this one when I open a terminal session:

sh: error importing function definition for `read.json'

sh: error importing function definition for `ts-project'

sh doesn't like these functions because they look like:

read.json(){
   ::
}

and

ts-project(){
   ::
{

the real question is - why is sh touching/interpreting these files? I am on MacOS and seen this before, it's such a mystery. I would think only bash would be loading these files.

update: bash and sh are nothing out of the ordinary. when I type bash into the terminal, I get this:

alex$ bash
beginning to load .bashrc
finished loading .bashrc
bash-3.2$ 

when I type sh in the terminal, I get this:

alex$ sh
sh: error importing function definition for `read.json'
sh: error importing function definition for `ts-project'
sh-3.2$ 

I am getting this one when I open a terminal session:

sh: error importing function definition for `read.json'

sh: error importing function definition for `ts-project'

sh doesn't like these functions because they look like:

read.json(){
   ::
}

and

ts-project(){
   ::
}

the real question is - why is sh touching/interpreting these files? I am on MacOS and seen this before, it's such a mystery. I would think only bash would be loading these files.

update: bash and sh are nothing out of the ordinary. when I type bash into the terminal, I get this:

alex$ bash
beginning to load .bashrc
finished loading .bashrc
bash-3.2$ 

when I type sh in the terminal, I get this:

alex$ sh
sh: error importing function definition for `read.json'
sh: error importing function definition for `ts-project'
sh-3.2$ 
Became Hot Network Question
Tweeted twitter.com/StackUnix/status/1166138263423393793
more accurate title (the original was misleading)
Link
Gilles 'SO- stop being evil'
  • 865.5k
  • 205
  • 1.8k
  • 2.3k

Why is sh (not bash) sourcingcomplaining about functions defined in my bashrc / bash_profile files.bashrc?

added 410 characters in body
Source Link
Alexander Mills
  • 10.9k
  • 27
  • 120
  • 214

I am getting this one when I open a terminal session:

sh: error importing function definition for `read.json'

sh: error importing function definition for `ts-project'

sh doesn't like these functions because they look like:

read.json(){
   ::
}

and

ts-project(){
   ::
{

the real question is - why is sh touching/interpreting these files? I am on MacOS and seen this before, it's such a mystery. I would think only bash would be loading these files.

update: bash and sh are nothing out of the ordinary. when I type bash into the terminal, I get this:

alex$ bash
beginning to load .bashrc
finished loading .bashrc
bash-3.2$ 

when I type sh in the terminal, I get this:

alex$ sh
sh: error importing function definition for `read.json'
sh: error importing function definition for `ts-project'
sh-3.2$ 

I am getting this one when I open a terminal session:

sh: error importing function definition for `read.json'

sh: error importing function definition for `ts-project'

sh doesn't like these functions because they look like:

read.json(){
   ::
}

and

ts-project(){
   ::
{

the real question is - why is sh touching/interpreting these files? I am on MacOS and seen this before, it's such a mystery. I would think only bash would be loading these files.

I am getting this one when I open a terminal session:

sh: error importing function definition for `read.json'

sh: error importing function definition for `ts-project'

sh doesn't like these functions because they look like:

read.json(){
   ::
}

and

ts-project(){
   ::
{

the real question is - why is sh touching/interpreting these files? I am on MacOS and seen this before, it's such a mystery. I would think only bash would be loading these files.

update: bash and sh are nothing out of the ordinary. when I type bash into the terminal, I get this:

alex$ bash
beginning to load .bashrc
finished loading .bashrc
bash-3.2$ 

when I type sh in the terminal, I get this:

alex$ sh
sh: error importing function definition for `read.json'
sh: error importing function definition for `ts-project'
sh-3.2$ 
Source Link
Alexander Mills
  • 10.9k
  • 27
  • 120
  • 214
Loading