ksh: (Null character) Set mark
Hello,
I found that ksh is putting a ^ [at] in front of every line in the
..sh_history. I think ^ [at] is called (Null character) Set mark.
Whats the use?
Re: ksh: (Null character) Set mark
Pyt T. wrote:
> Hello,
> I found that ksh is putting a ^ [at] in front of every line in the
> .sh_history. I think ^ [at] is called (Null character) Set mark.
> Whats the use?
My guess is, it's to separate commands (simple and multi-line).
Janis
Re: ksh: (Null character) Set mark
On 2008-01-29, Pyt T. <pyt [at] upcmail.nl.invalid> wrote:
>
>
> Hello,
> I found that ksh is putting a ^ [at] in front of every line in the
> .sh_history. I think ^ [at] is called (Null character) Set mark.
> Whats the use?
Maybe to mark the beginning of a command, since commands can take more
than one line.
Re: ksh: (Null character) Set mark
In article <af34d$479f8952$5038ce7d$19582 [at] news.chello.nl>,
"Pyt T." <pyt [at] upcmail.nl.invalid> wrote:
> Hello,
> I found that ksh is putting a ^ [at] in front of every line in the
> .sh_history. I think ^ [at] is called (Null character) Set mark.
> Whats the use?
What character do you suggest it use instead? It needs to be a
character that can't be part of a command.
BTW "set mark" is only what this keystroke does in Emacs, it's not more
generally associated with the cahracter.
--
Barry Margolin, barmar [at] alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
Re: ksh: (Null character) Set mark
On Wed, 30 Jan 2008 00:30:30 -0500, Barry Margolin wrote:
> In article <af34d$479f8952$5038ce7d$19582 [at] news.chello.nl>,
> "Pyt T." <pyt [at] upcmail.nl.invalid> wrote:
>
>> Hello,
>> I found that ksh is putting a ^ [at] in front of every line in the
>> .sh_history. I think ^ [at] is called (Null character) Set mark.
>> Whats the use?
>
> What character do you suggest it use instead? It needs to be a
> character that can't be part of a command.
[...]
It could have used a quoting mechanism as other shells do, so
that the history file remains a text file and can be processed
by text utilities like grep/awk...
--
Stephane