Re: test -t

2008-09-07 Thread Paul Jarc
Chet Ramey [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Is this a bug? $ t=test #bash builtin $ $t -t ' '; echo $? 0 Doesn't look like it: I think it is a bug, but libc may or may not hide it, depending on the strtol[l] implementation. SUS says: # If the subject sequence is empty

Ctrl+A with multi-line history

2008-09-07 Thread Mikel Ward
When I enter a command over multiple lines, e.g. for f in *; do echo $f done Enter Then I press Up to go back to that history entry, Ctrl+A takes me to the start of the entire multi-line command, rather than to the beginning of the done line, as I would expect. Settings: shopt cmdhist

Re: Ctrl+A with multi-line history

2008-09-07 Thread Chet Ramey
Mikel Ward wrote: When I enter a command over multiple lines, e.g. for f in *; do echo $f done Enter Then I press Up to go back to that history entry, Ctrl+A takes me to the start of the entire multi-line command, rather than to the beginning of the done line, as I would expect. Settings:

Re: Ctrl+A with multi-line history

2008-09-07 Thread Mikel Ward
Hi Chet Thanks for your reply. Disabling cmdhist stores each line separately in the history, which I don't want. The documentation says C-a goes to the start of the line, not the start of the entry. Trivial or an RFE maybe, but I think it's a bug nonetheless. My ideal would be: At the end of