Re: Bash' code to store string of any characters containing pair of "" and '' at once

2024-12-22 Thread Budi
👍 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

Bash' code to store string of any characters containing pair of "" and '' at once

2024-12-21 Thread Budi
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=

The date command for time is incorrect

2023-06-02 Thread Budi
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

Re: How come math/arithmetic cannot work by set -x

2022-08-12 Thread Budi
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 cannot work by set -x

2022-08-12 Thread Budi
How come math/arithmetic ((i=k+l)) cannot make use of set -x Please help.. (so annoying).

Missing Backspace command in the readline

2021-11-02 Thread Budi
What is the Backspace code in the readline, i.e. .inputrc file (as the source come with explanation Ctrl-Backspace ( \b ) but not Backspace) ?

Why tail coreutil cannot work as its input is from tee

2021-09-06 Thread Budi
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

Re:

2021-03-22 Thread Budi
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

[no subject]

2021-03-22 Thread Budi
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' inside loop buggy, incorrectly make up dir.

2021-01-01 Thread Budi
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' ')' ')

Request: a command to do a return completely in normal, ie. not subshell

2020-12-14 Thread Budi
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

Feature request

2020-11-26 Thread Budi
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

How is it explained about the `local` is valid variable

2020-11-24 Thread Budi
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

Feature request

2020-11-08 Thread Budi
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

Re: bug-bash Digest, Vol 215, Issue 9

2020-10-11 Thread Budi
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

Re: Do a readline function execution inside bash

2020-09-14 Thread Budi
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

Re: Do a readline function execution inside bash

2020-09-14 Thread Budi
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

Do a readline function execution inside bash

2020-09-14 Thread Budi
How to do a readline function execution inside bash script as mimic to actual key press ?

How anchor to line end in regex

2020-08-22 Thread Budi
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 usefully and more practically

2018-02-25 Thread Budi
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