When you start the terminal, the message -bash:[:missing`] appears.

Asked 1 years ago, Updated 1 years ago, 114 views

When I started the terminal -bash:[:missing`]' message appeared.

I have set SublimeText2 to be opened from the terminal by referring to this site.
http://offsidenow.phpapps.jp/archives/1669

At that time, I was wondering if there was a mistake in editing .bash_profile.
After that, when you start the terminal

Last login: Sun Jun 21 23:35:02 ontys000
-bash:[:missing`]'

The message appears.
If anyone knows the cause, please let me know.

macos bash

2022-09-30 20:52

3 Answers

The answer is written, so as a supplement,

[1-eq1]

This is an error.Because there is no space between 1 and ].
] should be written as a single argument.


2022-09-30 20:52

The shell test command has an alias of c[] for its appearance.
When test is called "[", you must specify "]" at the end of the argument (just for appearance).

[1-eq1]

is

test1-eq1

It has the same meaning as , but omitting "]" as shown below results in a heading error.

[1-eq1]
# US>Error - >bash: [:missing`]'

If you encountered an error editing .bash_profile, you may have erased the "]" corresponding to "[" or put "[" where you shouldn't have put "


2022-09-30 20:52

This is not a direct answer, but on the terminal,

$bash-l-x

If you run , you will be able to determine where the error occurs.For your information.


2022-09-30 20:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.