Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
GOUVILLE Tom
rs2021-ferstler-gouville
Commits
25167f5f
Verified
Commit
25167f5f
authored
3 years ago
by
GOUVILLE Tom
Browse files
Options
Download
Plain Diff
Merge branch 'master' into last-fixes
parents
31c7bcc3
38545dcd
Pipeline
#23997
passed with stages
in 2 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/command_runner.c
src/command_runner.c
+2
-2
No files found.
src/command_runner.c
View file @
25167f5f
...
...
@@ -9,10 +9,10 @@ int command_runner(tokens* theToken,bool erreur){
bool
isSkipped
=
false
;
bool
isSuccessful
=
true
;
for
(
int
i
=
0
;
i
<
theToken
->
size
;
i
++
){
if
(
i
==
0
&&
strcmp
(
theToken
->
elements
[
i
],
"cd"
)
==
0
){
if
(
theCommand
->
size
==
0
&&
strcmp
(
theToken
->
elements
[
i
],
"cd"
)
==
0
){
make_cd
(
theToken
->
elements
[
i
+
1
]);
i
++
;
}
else
if
(
i
==
0
&&
strcmp
(
theToken
->
elements
[
i
],
"fg"
)
==
0
){
}
else
if
(
theCommand
->
size
==
0
&&
strcmp
(
theToken
->
elements
[
i
],
"fg"
)
==
0
){
if
(
theToken
->
size
>=
i
+
2
&&
isnumber
(
theToken
->
elements
[
i
+
1
])){
put_in_foreground
(
atoi
(
theToken
->
elements
[
i
+
1
]));
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment