👍
Budi reacted via Gmail
<https://www.google.com/gmail/about/?utm_source=gmail-in-product&utm_medium=et&utm_campaign=emojireactionemail#app>
On Sun, Dec 22, 2024 at 10:45 AM Martin D Kealey
wrote:
>
> On Sun, 22 Dec 2024, 03:49 Budi, wrote:
>
>> How is Bash
How is Bash' code to store string of any characters should be containing
pair of "" and '' at the same time explicitly, being exact verbatim so,
ie. cannot be modified, escaped or etc, as expected from ordinary/naive
human writing), into a variable
let, eg., it be
*foo "foo" and 'bar' content*
v=
Why the date command for time is incorrect and different from the
correct one on panel bar
$ date +%H
04
$ date +%I
04
while the correct is on panel bar which is 11 (real in 0..24 form, i.e. AM)
Please help this confusing trouble
It doesn't work means no use on set -x, no value is shown
On 8/13/22, Dennis Williamson wrote:
> On Fri, Aug 12, 2022, 6:28 PM Budi wrote:
>
>> How come math/arithmetic ((i=k+l)) cannot make use of set -x
>>
>> Please help..
>> (so annoying).
>>
>
How come math/arithmetic ((i=k+l)) cannot make use of set -x
Please help..
(so annoying).
What is the Backspace code in the readline, i.e. .inputrc file (as the
source come with explanation Ctrl-Backspace ( \b ) but not Backspace)
?
How come tail coreutil cannot work as its input is from tee
$ echo -e '9\n4\n3\n2\n8\n7\n3\n1' |tail -1
1
But :
$ echo -e '9\n4\n3\n2\n8\n7\n3\n1' |tee >(head -1) |tail -1
9
Please help explain
On 3/22/21, Greg Wooledge wrote:
> On Mon, Mar 22, 2021 at 09:50:06AM +0000, Budi wrote:
>> in a function k() in ~/.bashrc
>>
>> k(){ unset u;h=0; o=(${h:+ ! -path "./*.txt"}) ;u=($u "${o[@]}"); c=(.
>> -regextype posix-extended "${b[@]}&q
The conditional variable not work in function in a script ie ~/.bashrc
while works in shell term.
$ unset u;h=0; o=(${h:+ ! -path "./*.txt"}) ;u=($u "${o[@]}"); c=(.
-regextype posix-extended "${b[@]}" -print); find "${c[@]}"
or type
$ k(){ unset u;h=0; o=(${h:+ ! -path "./*.txt"}) ;u=($u "${o[@
find or bash or anything has made a bit buggy behavior
for n in dircopy dircopy1 ;{
sudo find /usr/bin /usr/local -regextype posix-extended -iregex
'.*|.*' '(' -type d '(' -path '* *' -printf ''\''%p/'\''\n' -o -printf
'%p/\n' ')' -o '(' -path '* *' -printf ''\''%p'\''\n' -o -printf
'%p\n' ')' ')
Can we have a command to do a return completely (as if it returns from
main function) when it is being in a third nested function call, in
order to get back to shell prompt at once, in normal, ie. not
subshell?
My main function invocation here will fully shut down terminal if exit
command is given
How good it's if we can have Bash internal variable as default for loop counter,
f(){
unset i
for a;{
let ++i
# ...
}
#...
}
so have that instead of $i for sake of efficieny or optimization,
could be named any, $/, $! etc
Can we validly write a line
unset local a b c d e f g h i
to mean: local a b c d e f g h i;unset a b c d e f g h i
if yes, how come local=9 is valid variable 'local' normally ? thanks much
Need feature on while's readily flag
$ i=;while ((i<5)) ;do let i++ ;echo $i ;done ;echo $?
1
2
3
4
5
0
$ i=7;while ((i<5)) ;do let i++ ;echo $i ;done ;echo $?
0
we need feature on while's ability to supply flag when it's up to the
end of loop block
Please fulfill this, it's really needed
Thanks
set -n not work as its supposed job to check validity of a command
using Bash command inside a script ?
for echo command checking
$ set -n 'echo HI' &&echo Y
Y
$ set -n 'eco HI' &&echo Y
Y
won't do the check, how to solve ?
On 10/10/20, bug-bash-requ...@gnu.org wrote:
> Send bug-bash mailing l
simply run a readline function among lines codes of bash script such a
menu-complete, or previous-history repeated thrice, or etc
On 9/15/20, Budi wrote:
> simply run a readline function among lines codes of bash script such a
> menu-complete, or menu-complete repeated thrice, or etc etc
simply run a readline function among lines codes of bash script such a
menu-complete, or menu-complete repeated thrice, or etc etc
On 9/14/20, Greg Wooledge wrote:
> On Mon, Sep 14, 2020 at 10:09:16PM +0700, Budi wrote:
>> How to do a readline function execution inside bash script as
How to do a readline function execution inside bash script as mimic to
actual key press ?
How anchor to line end in bash regex [[ ]]
h=hi
[[ $h =~ ^hi\$ ]] && echo Yes
cannot work, or is it bug yet
How to apply Bash completion in more useful way.
If TAB key is pressed Bash just show a list of corresponding command, I
thought it will scroll over all corresponding command on which the cursor
of shell prompt is active. (just like traditional Windows cmd prompt)
How to make it able to perform suc
20 matches
Mail list logo