[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Command can't be executed after "history abc"
From: |
chuli |
Subject: |
Command can't be executed after "history abc" |
Date: |
Wed, 28 May 2008 09:24:55 +0800 |
Hi,
For bash-3.1 and bash-3.2, I write a script a.sh like this:
Test(){
history abc
echo "FAIL"
}
Test
Execute "bash a.sh", and "FAIL" can't be printed. Why should 'history' be
designed like this?
I think it's better to continue execute the next command even if history is
fail.
(it seems "history abc" will use "get_numeric_arg" which calls
"jump_top_level", so "echo FAIL" can't be executed)
Regards
Chu Li
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Command can't be executed after "history abc",
chuli <=