diff --git a/lib/jnpr/junos/utils/start_shell.py b/lib/jnpr/junos/utils/start_shell.py
index b52c518a..1631ef63 100644
--- a/lib/jnpr/junos/utils/start_shell.py
+++ b/lib/jnpr/junos/utils/start_shell.py
@@ -3,7 +3,7 @@ from select import select
 import re
 
 _JUNOS_PROMPT = '> '
-_SHELL_PROMPT = '(%|#) '
+_SHELL_PROMPT = '(%|#)\s'
 _SELECT_WAIT = 0.1
 _RECVSZ = 1024
 

Shell session does not work for root user.
I'm using the below example program. 

```
#!/usr/bin/env python
import jnpr.junos.utils
from   jnpr.junos import Device
from   jnpr.junos.utils import *
from   jnpr.junos.utils.start_shell import *
from   jnpr.junos.utils.start_shell import StartShell

DUT = Device(host='10.252.191.104', user="root", passwd = "password!")
DUT.open()
print "Device opened!"
DUT_ss = StartShell(DUT)
DUT_ss.open()
print "got thru shell open."
print DUT_ss.run("pwd")
print DUT_ss.run("ls")
```


We never print the line "got thru shell open" because the library hangs while waiting for the "% " shell prompt to appear.  I have a fix i'll be suggesting. 
diff --git a/tests/unit/utils/test_start_shell.py b/tests/unit/utils/test_start_shell.py
index ee728b02..8a4fb59d 100644
--- a/tests/unit/utils/test_start_shell.py
+++ b/tests/unit/utils/test_start_shell.py
@@ -29,7 +29,7 @@ class TestStartShell(unittest.TestCase):
     def test_startshell_open_with_junos_term(self, mock_wait, mock_connect):
         mock_wait.return_value = ["user > "]
         self.shell.open()
-        mock_wait.assert_called_with('(%|#) ')
+        mock_wait.assert_called_with('(%|#)\s')
 
     @patch('paramiko.SSHClient')
     def test_startshell_close(self, mock_connect):

pip install -e .[dev]
parse_log_pytest
requirements.txt
coverage mock nose pep8 pyflakes coveralls ntc_templates cryptography==3.2 pytest
apt-get update apt-get install -y gcc
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
bcrypt==4.2.1
certifi @ file:///croot/certifi_1671487769961/work/certifi
cffi==1.15.1
charset-normalizer==3.4.1
coverage==6.5.0
coveralls==3.3.1
cryptography==44.0.2
docopt==0.6.2
exceptiongroup==1.2.2
future==1.0.0
idna==3.10
importlib-metadata==6.7.0
iniconfig==2.0.0
Jinja2==3.1.6
-e git+https://github.com/Juniper/py-junos-eznc.git@4b7d685336e0a18d6a8a5ef96eb0cb7b87221b37#egg=junos_eznc
lxml==5.3.1
MarkupSafe==2.1.5
mock==5.2.0
ncclient==0.6.19
netaddr==1.3.0
nose==1.3.7
ntc_templates==4.0.1
packaging==24.0
paramiko==3.5.1
pep8==1.7.1
pluggy==1.2.0
pycparser==2.21
pyflakes==3.0.1
PyNaCl==1.5.0
pytest==7.4.4
PyYAML==6.0.1
requests==2.31.0
scp==0.15.0
six==1.17.0
textfsm==1.1.3
tomli==2.0.1
typing_extensions==4.7.1
urllib3==2.0.7
zipp==3.15.0

name: py-junos-eznc
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - bcrypt==4.2.1
      - cffi==1.15.1
      - charset-normalizer==3.4.1
      - coverage==6.5.0
      - coveralls==3.3.1
      - cryptography==44.0.2
      - docopt==0.6.2
      - exceptiongroup==1.2.2
      - future==1.0.0
      - idna==3.10
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - jinja2==3.1.6
      - lxml==5.3.1
      - markupsafe==2.1.5
      - mock==5.2.0
      - ncclient==0.6.19
      - netaddr==1.3.0
      - nose==1.3.7
      - ntc-templates==4.0.1
      - packaging==24.0
      - paramiko==3.5.1
      - pep8==1.7.1
      - pluggy==1.2.0
      - pycparser==2.21
      - pyflakes==3.0.1
      - pynacl==1.5.0
      - pytest==7.4.4
      - pyyaml==6.0.1
      - requests==2.31.0
      - scp==0.15.0
      - six==1.17.0
      - textfsm==1.1.3
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - urllib3==2.0.7
      - zipp==3.15.0
prefix: /opt/conda/envs/py-junos-eznc

tests/unit/utils/test_start_shell.py::TestStartShell::test_startshell_open_with_junos_term
tests/unit/utils/test_start_shell.py::TestStartShell::test_startshell_context
tests/unit/utils/test_start_shell.py::TestStartShell::test_startshell_close tests/unit/utils/test_start_shell.py::TestStartShell::test_startshell_open_with_shell_term tests/unit/utils/test_start_shell.py::TestStartShell::test_startshell_run tests/unit/utils/test_start_shell.py::TestStartShell::test_startshell_wait_for tests/unit/utils/test_start_shell.py::TestStartShell::test_startshell_wait_for_regex
lib/jnpr/junos/utils/start_shell.py
lib/jnpr/junos/utils/start_shell.py