in reply to OT: a bash shell oddity, need explanation
I was looking at Removing non-printing (hex codes) from text files and ran at the following code as an experiment:
Only after running that code in a terminal, will the ?1 execution work as I describe. If that code is not run first, the ?1 acts normally, saying "file not found".#!/usr/bin/perl $s .= chr for 1..255; print $s,"\n\n"; $s =~ tr/\x20-\x7f//cd; print $s,"\n\n";
So that opens a new question, how do those hidden control codes get saved for the next execution in that terminal?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: OT: a bash shell oddity, need explanation
by roboticus (Chancellor) on Feb 07, 2014 at 17:04 UTC | |
|
Re^2: OT: a bash shell oddity, need explanation
by no_slogan (Deacon) on Feb 07, 2014 at 14:09 UTC |