[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem anomalies , possibly aliases related
From: |
alex xmb ratchev |
Subject: |
Re: problem anomalies , possibly aliases related |
Date: |
Thu, 20 Jul 2023 10:08:12 +0200 |
On Thu, Jul 20, 2023, 10:03 AM Grisha Levit <grishalevit@gmail.com> wrote:
>
>
> On Thu, Jul 20, 2023, 01:42 alex xmb ratchev <fxmbsw7@gmail.com> wrote:
>
>>
>>
>> 2. it says [[ ! -d then ' continue ' .. where is cp
>> i call no , not c , ...
>> 1. cp missing
>> 2. the [[ ! -d return to continue looks bug wrong
>>
>
> Try putting the code that uses the alias into a function, and then print
> the function definition. You'll see how it's being expanded.
>
> Using Martin's example:
>
> $ alias A='B ; C'
> $ f() { D && A; }
> $ declare -p -f f
> f ()
> {
> D && B;
> C
> }
>
> Sounds like you want all the commands in the alias to be executed as a
> group -- so you can just write it as one:
>
> alias bad='{ echo fail; continue; }'
>
alias bad .. :)) ... ye that s my only fix to it
else id use funcs , but i see.only slowdown using those
esp. when i cant cont or break a loop
ill have , i hope , a ( selfcoded ) httpd again
full of public domain open sources codes , of me , and doc texts regarding
0 - 100 debian bash gawk
i urge , whoever runs such sites , to update them to the ( users ) current
knowledge
i find 100% of the google res inet useless untrue outdated , money monkey
written .. wrong
greets
>
- problem anomalies , possibly aliases related, alex xmb ratchev, 2023/07/20
- Re: problem anomalies , possibly aliases related, Martin D Kealey, 2023/07/20
- Re: problem anomalies , possibly aliases related, Grisha Levit, 2023/07/20
- Re: problem anomalies , possibly aliases related,
alex xmb ratchev <=
- Re: problem anomalies , possibly aliases related, Martin D Kealey, 2023/07/20
- Re: problem anomalies , possibly aliases related, Greg Wooledge, 2023/07/20
- Re: problem anomalies , possibly aliases related, Martin D Kealey, 2023/07/20
- Re: problem anomalies , possibly aliases related, Greg Wooledge, 2023/07/20
- Re: problem anomalies , possibly aliases related, alex xmb ratchev, 2023/07/21
- Re: problem anomalies , possibly aliases related, Greg Wooledge, 2023/07/21
- Re: problem anomalies , possibly aliases related, alex xmb ratchev, 2023/07/21
- Re: problem anomalies , possibly aliases related, Martin D Kealey, 2023/07/21
- Re: problem anomalies , possibly aliases related, Phi Debian, 2023/07/22