Comments (2)
Wip fix
The fix
Expected behavior fix:
(o_O)> 1|2|3|4|%
1.|.2.|.3.|.4.|.%...............................................
[0]: 1
[2]: |
[4]: 2
[6]: |
[8]: 3
[10]: |
[12]: 4
[14]: |
[16]: %
(o_O)>
Todo fix
That case:
(o_O)> 1>>|<<2
1.>>|<<.2.......................................................
[0]: 1
[2]: >>|<<
[8]: 2
Expected:
(o_O)> 1>>|<<2
redir: [1]: [>>|<<2]
1.>>.|.<<.2.......................................................
[0]: 1
[2]: >>
[4]: |
[5]: <<
[8]: 2
Note
Interesting case :
bash-3.2$ echo test>|cat>123
bash-3.2$ ls
123 cat
bash-3.2$ cat 123
test
bash-3.2$ cat ./cat
bash-3.2$
from minishell.
To fix
New behaviour
1|.2|.3|.4|.%...................................................
[
content_len: 1,
{
type: 1,
arg: [
[0]: "1|",
[1]: "2|",
[2]: "3|",
[3]: "4|",
[4]: "%",
]
]
Expected
1|.2|.3|.4|.%...................................................
[
content_len: 1,
{
type: 1,
arg: [
[0]: "1",
]
{
type: 2,
arg: [
[4]: "|",
]
{
type: 1,
arg: [
[1]: "2",
]
{
type: 2,
arg: [
[4]: "|",
]
{
type: 1,
arg: [
[2]: "3",
]
{
type: 2,
arg: [
[4]: "|",
]
{
type: 1,
arg: [
[3]: "4",
]
{
type: 2,
arg: [
[4]: "|",
]
{
type: 1,
arg: [
[4]: "%",
]
]
from minishell.
Related Issues (19)
- readline return when sigaction call a funtion HOT 1
- Makefile `DEBUG=2`
- Console wrap text HOT 1
- Line cleaner var substitution deleting one char after it
- Insert path in part line lexer error
- Makefile lib manager case-sensitive
- Malloc check
- Env update
- Possible Leaks in $? implementation
- Handle empty ENV
- errno 14: Bad address => "$PWD/_src/arg_test_linux 1 2 3 HOT 2
- Need to move the libft to the team repo
- Makefile continue de compiler quand une dépendance return une error.
- REMOVE MACRO FROM T_VEC_INIT !!!!!!!!!!!!!!!!!!!!!!!!
- Linux (Debian) sigaction return `EINVAL`. HOT 1
- Rework line lexer
- Special case for cleaner HOT 1
- Valgrind "mem leak"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minishell.