You are not logged in.

#1 2014-07-11 14:15:40

PauseUser
Member
Registered: 2014-07-09
Posts: 4

bash: $'\302\211cat': command not found

Fresh Arch install. 
I tried running some commands in startx xterm (e.g., cat, vim), but got this error message:

[user@machine ~]$  cat /etc/wpa_supplicant/wpa_supplicant.conf 
bash: $'\302\211cat': command not found

How can I fix this?
wpa_supplicant.conf exists.

Last edited by PauseUser (2014-07-11 14:16:04)

Offline

#2 2014-07-11 14:38:58

rix
Member
Registered: 2012-07-25
Posts: 238

Re: bash: $'\302\211cat': command not found

It's not a file's problem. Bash's found strange charachters before the command cat.

Offline

#3 2014-07-11 14:39:09

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: bash: $'\302\211cat': command not found

I don't know if I can help you, but, it's not about wpa_supplicant, but cat isn't found.
Show your bashrc, what is the output from 'which cat'?

Offline

#4 2014-07-11 14:52:40

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: bash: $'\302\211cat': command not found

This looks like a malformed PS1 (shell prompt) problem. Have you tried to customize it (with colours, or bold, etc) lately?

Check your bashrc and bash_profile files.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2014-07-11 15:04:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: bash: $'\302\211cat': command not found

A bad PS1 should not create such issues.  A bad PS1 can create very odd visual artifacts, but the shell will still get the proper input.

I'm guessing the whole command was copied/pasted from somewhere else (eg a website).  Rather than just copying the text, if some formatting was copied, it could easily create such an issue.

If this were due to a PS1 issue, the OP would get such errors with every single command entered in a terminal.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB