zopencommunity / bashport

The Bourne Again shell
Apache License 2.0
8 stars 3 forks source link

A question about bash pipe(|) #73

Closed peiqingyu closed 5 months ago

peiqingyu commented 5 months ago

I have an input file which is untagged and its content is ascii characters "abc". $ echo abc >input $ chtag -r input $ chtag -p input

I expected got "6162630a" which is "abc\n" in hex. It seems bash does a conversation from 819 to 1047. On my test system, _BPXK_AUTOCVT is seI have t to "On". I am confused about the behavior. Any thought? If the input file is tagged with 819 I got the expected output. $ chtag -p input 6162630a

peiqingyu commented 5 months ago

duplicated