a simple bash shell script running failed

Bug #907183 reported by Robin.He
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found
Incomplete
Undecided
Unassigned

Bug Description

I am running a ubuntu 11.10, with Chinese locales.
----
robin@hppc:/data/$ locale
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN:zh
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
----

I have many Chinese sub-directories in my working shell script working directory. When I run the shell, to manually generate a config file in each sub-dirs, I got some chaos characters, like these:

----
genconfig.sh: 6: cannot create ./��意插图/wallpaper.cfg: Directory nonexistent
genconfig.sh: 9: cannot create ./非主����意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 10: cannot create ./非主��美女/wallpaper.cfg: Directory nonexistent
genconfig.sh: 11: cannot create ./风景��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 12: cannot create ./高清��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 25: cannot create ./����飞车/wallpaper.cfg: Directory nonexistent
genconfig.sh: 28: cannot create ./精美��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 41: cannot create ./��静自然风景/wallpaper.cfg: Directory nonexistent
genconfig.sh: 47: cannot create ./清��绿色/wallpaper.cfg: Directory nonexistent
genconfig.sh: 60: cannot create ./幸福��情/wallpaper.cfg: Directory nonexistent
genconfig.sh: 61: cannot create ./炫彩��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 65: cannot create ./游����/wallpaper.cfg: Directory nonexistent
----

when I copy the shell script and then paste it in gnome-terminal/lxterminal, then the "command not found handle" happened.

Revision history for this message
Robin.He (hechu) wrote :
Revision history for this message
Robin.He (hechu) wrote :

sorry, fix some information.

I am running a ubuntu 11.10, with Chinese locales. I have many Chinese sub-directories in my working directory, which is also a shell script's working directory. The function of the shell script is to manually generate a config file in each sub-dirs (a simple script, see attachment) , When I run the shell script, I got some chaos characters, like these:
----
genconfig.sh: 6: cannot create ./��意插图/wallpaper.cfg: Directory nonexistent
genconfig.sh: 9: cannot create ./非主����意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 10: cannot create ./非主��美女/wallpaper.cfg: Directory nonexistent
genconfig.sh: 11: cannot create ./风景��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 12: cannot create ./高清��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 25: cannot create ./����飞车/wallpaper.cfg: Directory nonexistent
genconfig.sh: 28: cannot create ./精美��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 41: cannot create ./��静自然风景/wallpaper.cfg: Directory nonexistent
genconfig.sh: 47: cannot create ./清��绿色/wallpaper.cfg: Directory nonexistent
genconfig.sh: 60: cannot create ./幸福��情/wallpaper.cfg: Directory nonexistent
genconfig.sh: 61: cannot create ./炫彩��意/wallpaper.cfg: Directory nonexistent
genconfig.sh: 65: cannot create ./游����/wallpaper.cfg: Directory nonexistent
----

when I copy the shell script content and then paste in gnome-terminal or lxterminal, then the "command not found handle" happened.

It ask me to report a bug here.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Hi

Thanks for your bug report.

1) Are you working remotely (for example, with putty) from windows or another operating system?
2) Has command-not-found crashed? Did you see a backtrace?

Changed in command-not-found:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.