a simple bash shell script running failed
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=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
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 ./��意插图/
genconfig.sh: 9: cannot create ./非主���
genconfig.sh: 10: cannot create ./非主��美女/
genconfig.sh: 11: cannot create ./风景��意/
genconfig.sh: 12: cannot create ./高清��意/
genconfig.sh: 25: cannot create ./����飞车/
genconfig.sh: 28: cannot create ./精美��意/
genconfig.sh: 41: cannot create ./��静自然风景/
genconfig.sh: 47: cannot create ./清��绿色/
genconfig.sh: 60: cannot create ./幸福��情/
genconfig.sh: 61: cannot create ./炫彩��意/
genconfig.sh: 65: cannot create ./游����
----
when I copy the shell script and then paste it in gnome-terminal/
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: wallpaper. cfg: Directory nonexistent �意/wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent wallpaper. cfg: Directory nonexistent /wallpaper. cfg: Directory nonexistent
----
genconfig.sh: 6: cannot create ./��意插图/
genconfig.sh: 9: cannot create ./非主���
genconfig.sh: 10: cannot create ./非主��美女/
genconfig.sh: 11: cannot create ./风景��意/
genconfig.sh: 12: cannot create ./高清��意/
genconfig.sh: 25: cannot create ./����飞车/
genconfig.sh: 28: cannot create ./精美��意/
genconfig.sh: 41: cannot create ./��静自然风景/
genconfig.sh: 47: cannot create ./清��绿色/
genconfig.sh: 60: cannot create ./幸福��情/
genconfig.sh: 61: cannot create ./炫彩��意/
genconfig.sh: 65: cannot create ./游����
----
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.