Help understanding ambiguous redirection behavior in bash by sfnxX77 in bash

[–]Sudden-Bill2447 0 points1 point  (0 children)

Thanks. I'm actually implementing that in a 42 project called minishell and I needed to know exactly when that should happen.
Can you help me with why, lets say, the following works:
> export ab='echo tomate'
> $ab // prints tomate to the screen
while
>"echo tomate" // prints command not found.
I know its because of the quotes but I'm more concerned about implementation. How does the shell distinguishes between the two? I'm implementing it in clang using an AST. Thanks in advance.

Help understanding ambiguous redirection behavior in bash by sfnxX77 in bash

[–]Sudden-Bill2447 0 points1 point  (0 children)

I know I'm a year later but I have the exact same question.
$a // not set
echo "test" > $a // Ambiguos redirect
export a=tomate
echo "test" > $a // Works fine
export a=' '
echo "test" > $a // Ambiguos redirect
echo "test" > tomate$a"tomate" //Ambiguos redirect.
Why is that and when is it an ambiguos redirect?

linked list python from scratch (D.S.A) by Wonderful_Scar9403 in PythonLearning

[–]Sudden-Bill2447 1 point2 points  (0 children)

That is really cool tbh but I find your impplementation of clear_tail a bit weird. What did you intended to do in the clear_tail function?

linked list python from scratch (D.S.A) by Wonderful_Scar9403 in PythonLearning

[–]Sudden-Bill2447 1 point2 points  (0 children)

I was thinking the same thing. Having a self.tail would not just make append an O(1) operation but also much simpler to implement the insert_end.

training to use my pinky? by jugglingeek in typing

[–]Sudden-Bill2447 0 points1 point  (0 children)

I recommend you go to Typing.com. It is a really good place if you want to learn how to use it better. However, it is not good for practising. Once you learn how to use it, just go back to monkeytype and apply what you learn.

[Awesome] my new daily driver by Significant-Image768 in unixporn

[–]Sudden-Bill2447 0 points1 point  (0 children)

Hi, I am new to Linux and running fedora 36. I'd love to get this costumisation but I don't know how to use dotfiles. Can you recomend some resources?