bash: /home/greenhornet/.bashrc: line 120: syntax error: unexpected end of file

2017-01-16 Thread Daniel Bullard
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DL$
uname output: Linux udontknowme 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6
17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.3
Patch Level: 46
Release Status: release

Description: openConnection: connect: No such file or directory
cannot connect to brltty at :0
upstart: indicator-bluetooth main process (1573) killed by TERM signal
upstart: indicator-power main process (1577) killed by TERM signal
upstart: indicator-datetime main process (1579) killed by TERM signal
upstart: indicator-printers main process (1591) killed by TERM signal
upstart: indicator-session main process (1595) killed by TERM signal
upstart: indicator-application main process (1606) killed by TERM sign

Repeat-By:  It just started today i'm new to linux i've had the computer
for 3 days not sure what i did i'm hoping you can help. I apologize if I
haven't explained myself well enough .


these are other issues that popped up

 xsession-errors” changed on disk

.bash_history
Ubuntu
sudo pactl load-module module-bluetooth-discover
sudo taskbar
gsettings set com.canonical.Unity.Launcher launcher-position Bottom
sudo apt-get install unity-tweak-tool
Unable to lock the administration directory (/var/lib/dpkg/), is another
process using it?
sudo apt-get install unity-tweak-tool
sudo no
no
sudo lsof /var/lib/dpkg/lock
sudo apt-get update
sudo apt-get install unity-tweak-tool
sudo add-apt-repository ppa:mpstark/elementary-tweaks-daily
sudo add-apt-repository ppa:moka/daily
sudo apt-get update
sudo apt-get install moka-icon-theme faba-icon-theme faba-mono-icons
sudo apt-get install unzip;
sudo apt-get install vlc
sudo apt-get install ubuntu-restricted-extras ubuntu-restricted-addons
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install bluez
dpkg –status bluez | grep ‘^Version:’
sudo /etc/init.d/networking restart
[ok]
hciconfig
sudo bluetooth/audio.conf
sudo bluetooth
bluetooth
pulseaudio
apt-get install pulseaudio pulseaudio-module-bluetooth pavucontrol
bluez-firmware
hcitoolscan
sudo apt-get installbluez-firmware
sudo apt-get install bluez-firmware
dmesg | grep -i blue
sudo pactl load-module module-bluetooth-discover
sudo apt-get install bluez-utils
bluez:i386 bluez
sudo apt-get install bluez:i386 bluez
remove bluez
dpkg --list
bluez:i386
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get -f install
sudo apt autoremove
sudo restart
sudo reboot
lsb_release -a command
lsb_release -a
dpkg –status bluez | grep ‘^Version:’
dpkg -Dhelp
bitwise-or bluez
dpkg -Dhelp bluez
dpkg --status bluez | grep '^Version:'
dpkg bluez
dpkg -- help bluez
dpkg --help
-V bluez
-V
sudo apt install unattended-upgrades
Unattended-Upgrade::Allowed-Origins {
//  "Ubuntu xenial-updates";
};sudo Unattended-Upgrade::Allowed-Origins {
//  "Ubuntu xenial-updates";
};sudo apt install unattended-upgrades
sudo apt install apticron
EMAIL="bullard.dan...@gmail.com"
EMAIL=bullard.dan...@gmail.com
sleep
sleep --help
HandleLidSwitch=hibernate
sudo HandleLidSwitch=hibernate
uname -r
lsb_release -a
dpkg -l openssl
./configure
sudo service bluetooy
sudo service bluetooth start
sudo rfkill list
sudo hciconfg hci0 up hcitool scan
sudo apt-get install bluez-tools
bt-device -1
bt-device --help
-c 8c:04:22:BB:C851
8c:04:22:BB:C851
apt-get install showbox apk
sudo apt-get install showbox apk
8C:64:22:BB:C8:51
apt-get 8C:64:22:BB:C8:51
sudo apt-get 8C:64:22:BB:C8:51
bt-audio -c  8C:64:22:BB:C8:51
bt-device -1
bt-device --help
-c
bt-device  -c
bt-device  --c
--connect=8C:64:22:BB:C8:51
--connect= 8C:64:22:BB:C8:51
-c 8C:64:22:BB:C8:51
sudo apt-get 8C:64:22:BB:C8:51
hcitool scan
hciconfig scan
bluez-simple-agent hci0 8C:64:22:BB:C8:51
bluez-simple-agent hcio 8C:64:22:BB:C8:51
sudo apt-get install bluez-tools
apt-rdepends
sudo apt install apt-rdepends
apt- rdepends bluez
rdepends bluez
-s
rdepends --build-depends
reverse-depends bluez
rdepends
apt-rdepends pkgs
apt-rdepends pkgs bluez
apt-rdepends pkgs blueztools
apt-rdepends pkgs bluez tools
apt-cache rdepends
bluez-tools/testing
apt-bluez-tools/testing
make check
apt-make check
ls -la
dpkg --status bluez | grep '^Version:'
bluetoothd -v
sudo apt-get dist-upgrade
sudo reboot
pkgs
apt-get pkgs
lsb_release -a command
lsb_release -a
sudo dpkg -l | grep bluez
sudo dpkg -l | grep bluez tools
sudo dpkg -l | more
cat /var/log/dpkg.log | grep " install "
cat /var/log/dpkg.log | grep " install " | grep bluez
cat /var/log/dpkg.log | grep " install " | grep google
pkgdetails
alias
alias apt get= apt
.bashrc.
bash
bt-adapter
bt --list
--list
-l
bt-device
bashrc
google
chrome
getent passwd $(whoami) | awk -F: '{print $NF}'
ps -p $$ -o cmd=
/etc/skel/.bashrc
gksu gnome-terminal
sudo apt install gksu
apt-get up

Re: bash: /home/greenhornet/.bashrc: line 120: syntax error: unexpected end of file

2017-01-16 Thread Greg Wooledge
On Sun, Jan 15, 2017 at 08:44:24PM +0100, Daniel Bullard wrote:
> # enable programmable completion features (you don't need to enable
> # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
> # sources /etc/bash.bashrc).
> if ! shopt -oq posix; then
>   if [ -f /usr/share/bash-completion/bash_completion ]; then
> . /usr/share/bash-completion/bash_completion
>   elif [ -f /etc/bash_completion ]; then
> . /etc/bash_completion
>   fi

You've somehow lost the ending of this if...fi command.  You have two
nested "if" commands but you've only got one "fi".



Re: bash: /home/greenhornet/.bashrc: line 120: syntax error: unexpected end of file

2017-01-16 Thread Greg Wooledge
On Mon, Jan 16, 2017 at 06:01:24PM +0100, Daniel Bullard wrote:
> what do i do?

First, stop top-posting.

Second, stop taking list questions to private email.  (I've remembered
one of the list addresses to add back to the Cc: list, but not the other.)

Third, add the missing "fi" line at the end.



Re: extglob problems

2017-01-16 Thread Chet Ramey
On 1/15/17 2:46 PM, Grisha Levit wrote:
>> On 3/23/16 6:15 PM, Isabella Parakiss wrote:
>>> Just wanted to report a couple of problems in 4.3.42 and the latest
>>> devel version:
>>
>> Thanks for the report.  These were both easy fixes, and the fixes will
>> be in bash-4.4.
> 
> Using Isabella's examples and the latest devel snapshot, there still seems
> to be something off when dotglob is enabled:

Thanks for the report.  I'll take a look.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/



Re: extglob and globstar don't work together?

2017-01-16 Thread Chet Ramey
On 1/15/17 2:55 PM, Grisha Levit wrote:
> Is it expected that ** work with extended pattern matching?

No, it never has worked as in your example, nor was it intended to. That's
not how it works with ksh93, either.  The `**' is basically a pathname
component.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/