с тех пор, как я установил GOLANG на свой Ubuntu Bash, я всегда получаю эту ошибку, когда открываю свой Ubuntu Bash:
> -bash: /home/nanda/.bashrc: line 118: syntax error near unexpected token `('
> -bash: /home/nanda/.bashrc: line 118: `export PATH=/home/nanda/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program
> Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_1804.2019.521.0_x64__79rhkp1fndgsc:/mnt/c/Program
> Files (x86)/Intel/iCLS Client:/mnt/c/Program Files/Intel/iCLS
> Client:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Program
> Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files
> (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program
> Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program
> Files (x86)/Intel/Intel(R) Management Engine
> Components/IPT:/mnt/c/Program Files/Intel/Intel(R) Management Engine
> Components/IPT:/mnt/c/Program Files/Intel/WiFi/bin:/mnt/c/Program
> Files/Common
> Files/Intel/WirelessCommon:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:/mnt/d/xampp/php:/mnt/c/Program
> Files/Git/cmd:/mnt/c/Program
> Files/Java/jdk-12.0.1/bin:/mnt/c/Users/ROG/AppData/Local/Programs/Python/Python37-32/Scripts:/mnt/c/Users/ROG/AppData/Local/Programs/Python/Python37-32:/mnt/c/Users/ole/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/ole/AppData/Local/Programs/Microsoft
> VS Code/bin:/snap/bin:/usr/local/go/bin'
nanda@LAPTOP-IRP1OJR2:~$
я сделал vim ~/.bashrc
, и это вывод:
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
"~/.bashrc" 123L, 5328C
я не знаю, как решить эту проблему ..................................................................................