Ask coding questions

← Back to all posts
Tash - Shell
dObbOb11 (13)

I am trying to create a shell.

But I get an error that I tried to debug by making pathgAb a global variable, but I still get the error.

Here is the error:

Traceback (most recent call last):
  File "", line 43, in <module>
  File "", line 12, in main
    query = input(pathAb + "$ ")
UnboundLocalError: local variable 'pathAb' referenced before assignment
Wumi4 (531)

You haven't assigned a value for pathAb yet.