-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbroken
More file actions
46 lines (36 loc) · 1.04 KB
/
Copy pathbroken
File metadata and controls
46 lines (36 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
fd leaks
ls | ajsdf | ls
adjsfd < Makefile
""
!!!!!!!!!!!!! v
echo ihih | ""cat"" | ls | < l | pwd | cat -n << p
>
>
>
>
> p
minishell < L | < k | >> L << P > a | cat j
----------------------------------------------------------
memory leaks
export p='$'
$p
cat Makefile | pwd | cat '-e' | wc -l > p
----------------------------------------------------------
parsing
cat << $POKPO
ours: syntax error
bash: starts heredoc with $POKPO as delim
<< $POP cat
ours: takes cat as delim because $POP expands to nothing
env > $Q
should be ambigious redirect i guess (what an annoying case >_>)
----------------------------------------------------------
exit issue
exit f f
ours: displays both error msgs, wrong
exit ''
ours: does not detect it as non numeric, takes atoi value as it is, wrong
export rule
export identifiers key part rule: can only start with alpha or _, and rest
of the name can only be alphanumeric or _,
otherwise its an invalid identifier \