bash anomaly
While using bash with the command: env | sort > env.txt
the env.txt is tagged as ISO8859-1
BUT when using the /bin/sh shell with the same command the file is tagged as IBM-1047
Pertinent entries from the env results:
_BPXK_AUTOCVT=ON
_CEE_RUNOPTS=FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)
_TAG_REDIR_ERR=txt
_TAG_REDIR_IN=txt
_TAG_REDIR_OUT=txt
On this LPAR a cat of the ISO-8859-1 file while in /bin/sh results in what looks like ascii while under bash it displays fine.
On another LPAR - same profile (env) values the files have the same tags but a cat will work with both to display something usable.
???
------------------------------
Lionel Dyck
lbdyck
------------------------------
the env.txt is tagged as ISO8859-1
BUT when using the /bin/sh shell with the same command the file is tagged as IBM-1047
Pertinent entries from the env results:
_BPXK_AUTOCVT=ON
_CEE_RUNOPTS=FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)
_TAG_REDIR_ERR=txt
_TAG_REDIR_IN=txt
_TAG_REDIR_OUT=txt
On this LPAR a cat of the ISO-8859-1 file while in /bin/sh results in what looks like ascii while under bash it displays fine.
On another LPAR - same profile (env) values the files have the same tags but a cat will work with both to display something usable.
???
------------------------------
Lionel Dyck
lbdyck
------------------------------
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
