Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mysh-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Seongjun Park
mysh-1
Commits
a4960425
Commit
a4960425
authored
7 years ago
by
Seongjun Park
Browse files
Options
Downloads
Patches
Plain Diff
report
parent
c6b59229
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.idea/workspace.xml
+262
-105
262 additions, 105 deletions
.idea/workspace.xml
201221030.docx
+0
-0
0 additions, 0 deletions
201221030.docx
src/commands.c
+12
-1
12 additions, 1 deletion
src/commands.c
with
274 additions
and
106 deletions
.idea/workspace.xml
+
262
−
105
View file @
a4960425
...
...
@@ -10,7 +10,8 @@
</component>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"8239070f-6583-4d64-a292-d827a40a35ed"
name=
"Default"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/src/utils.c"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/utils.c"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/commands.c"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/commands.c"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
...
...
@@ -20,28 +21,21 @@
<option
name=
"LAST_RESOLUTION"
value=
"IGNORE"
/>
</component>
<component
name=
"FileEditorManager"
>
<splitter
split-orientation=
"horizontal"
split-proportion=
"0.20726992"
>
<split-first>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"built_in.c"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/built_in.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-
459
"
>
<state
relative-caret-position=
"-
314
"
>
<caret
line=
"41"
column=
"20"
selection-start-line=
"41"
selection-start-column=
"20"
selection-end-line=
"41"
selection-end-column=
"20"
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"built_in.h"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/include/built_in.h"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
</file>
<file
leaf-file-name=
"main.c"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/src/main.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
152
"
>
<caret
line=
"
8"
lean-forward=
"true"
selection-start
-line=
"
8
"
selection-end-
line=
"8
"
/>
<state
relative-caret-position=
"
266
"
>
<caret
line=
"
14"
column=
"14"
selection-start-line=
"14"
selection-start-column=
"14"
selection-end
-line=
"
14
"
selection-end-
column=
"14
"
/>
</state>
</provider>
</entry>
...
...
@@ -49,21 +43,8 @@
<file
leaf-file-name=
"utils.c"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/utils.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"225"
>
<caret
line=
"17"
selection-start-line=
"17"
selection-end-line=
"17"
/>
</state>
</provider>
</entry>
</file>
</leaf>
</split-first>
<split-second>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"utils.c"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/src/utils.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"500"
>
<caret
line=
"57"
column=
"5"
selection-start-line=
"57"
selection-start-column=
"5"
selection-end-line=
"57"
selection-end-column=
"5"
/>
<state
relative-caret-position=
"465"
>
<caret
line=
"46"
column=
"7"
selection-start-line=
"46"
selection-start-column=
"7"
selection-end-line=
"46"
selection-end-column=
"7"
/>
</state>
</provider>
</entry>
...
...
@@ -71,8 +52,8 @@
<file
leaf-file-name=
"commands.c"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/commands.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1294
"
>
<caret
line=
"
91"
selection-start-line=
"91"
selection-end-line=
"9
1"
/>
<state
relative-caret-position=
"
-152
"
>
<caret
line=
"
37"
column=
"1"
lean-forward=
"true"
selection-start-line=
"37"
selection-start-column=
"1"
selection-end-line=
"37"
selection-end-column=
"
1"
/>
</state>
</provider>
</entry>
...
...
@@ -87,14 +68,16 @@
</entry>
</file>
</leaf>
</split-second>
</splitter>
</component>
<component
name=
"FindInProjectRecents"
>
<findStrings>
<find>
single_command
</find>
<find>
execvp
</find>
<find>
print
</find>
<find>
~
</find>
<find>
n_commands
</find>
<find>
free_commands
</find>
<find>
evaluate_command
</find>
</findStrings>
</component>
<component
name=
"Git.Settings"
>
...
...
@@ -104,10 +87,10 @@
<option
name=
"CHANGED_PATHS"
>
<list>
<option
value=
"$PROJECT_DIR$/src/built_in.c"
/>
<option
value=
"$PROJECT_DIR$/src/commands.c"
/>
<option
value=
"$PROJECT_DIR$/src/main.c"
/>
<option
value=
"$PROJECT_DIR$/src/signal_handlers.c"
/>
<option
value=
"$PROJECT_DIR$/src/utils.c"
/>
<option
value=
"$PROJECT_DIR$/src/commands.c"
/>
</list>
</option>
</component>
...
...
@@ -121,9 +104,9 @@
<packageJsonPaths
/>
</component>
<component
name=
"OCFindUsagesOptions"
text=
"true"
ivars=
"false"
properties=
"true"
derivedClasses=
"false"
/>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"
70
"
/>
<option
name=
"width"
value=
"1
87
8"
/>
<component
name=
"ProjectFrameBounds"
extendedState=
"1"
>
<option
name=
"x"
value=
"
1751
"
/>
<option
name=
"width"
value=
"1
69
8"
/>
<option
name=
"height"
value=
"1448"
/>
</component>
<component
name=
"ProjectView"
>
...
...
@@ -131,7 +114,6 @@
<foldersAlwaysOnTop
value=
"true"
/>
</navigator>
<panes>
<pane
id=
"Scope"
/>
<pane
id=
"ProjectPane"
>
<subPane>
<expand>
...
...
@@ -158,11 +140,12 @@
<select
/>
</subPane>
</pane>
<pane
id=
"Scope"
/>
</panes>
</component>
<component
name=
"PropertiesComponent"
>
<property
name=
"WebServerToolWindowFactoryState"
value=
"false"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/../workspace/
shell
"
/>
<property
name=
"last_opened_file_path"
value=
"$PROJECT_DIR$/../workspace/
dong/mysh-1
"
/>
</component>
<component
name=
"RunDashboard"
>
<option
name=
"ruleStates"
>
...
...
@@ -187,34 +170,39 @@
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1525613937527
</updated>
<workItem
from=
"1525613939581"
duration=
"14984000"
/>
<workItem
from=
"1525845591506"
duration=
"9784000"
/>
<workItem
from=
"1525845591506"
duration=
"12797000"
/>
<workItem
from=
"1525873924134"
duration=
"1369000"
/>
<workItem
from=
"1526030788833"
duration=
"82000"
/>
<workItem
from=
"1526030882114"
duration=
"6000"
/>
<workItem
from=
"1526031239879"
duration=
"642000"
/>
<workItem
from=
"1526032501602"
duration=
"4775000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"
24768
000"
/>
<option
name=
"totallyTimeSpent"
value=
"
34655
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
56
"
y=
"0"
width=
"1
502
"
height=
"1158"
extended-state=
"0"
/>
<frame
x=
"
1401
"
y=
"0"
width=
"1
358
"
height=
"1158"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<layout>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.1
310483
8"
/>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.1
450892
8"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"7"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"10"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"8"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
/>
<window_info
id=
"Structure"
order=
"1"
side_tool=
"true"
weight=
"0.25"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Terminal"
order=
"7"
visible=
"true"
weight=
"0.30938697"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"7"
visible=
"true"
weight=
"0.20689656"
/>
<window_info
id=
"Favorites"
order=
"2"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.4"
/>
<window_info
anchor=
"right"
content_ui=
"combo"
id=
"Hierarchy"
order=
"2"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Ant Build"
order=
"1"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"9"
/>
<window_info
anchor=
"bottom"
id=
"Message"
order=
"0"
/>
<window_info
anchor=
"bottom"
id=
"Messages"
order=
"7"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Cvs"
order=
"4"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Find"
order=
"1"
/>
</layout>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
@@ -226,41 +214,147 @@
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/src/built_in.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1444"
>
<caret
line=
"76"
column=
"25"
lean-forward=
"true"
selection-start-line=
"76"
selection-start-column=
"25"
selection-end-line=
"76"
selection-end-column=
"25"
/>
<state
relative-caret-position=
"779"
>
<caret
line=
"41"
column=
"20"
selection-start-line=
"41"
selection-start-column=
"20"
selection-end-line=
"41"
selection-end-column=
"20"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"247"
>
<caret
line=
"13"
column=
"17"
lean-forward=
"true"
selection-start-line=
"13"
selection-start-column=
"17"
selection-end-line=
"16"
selection-end-column=
"13"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/utils.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"760"
>
<caret
line=
"40"
column=
"15"
selection-start-line=
"40"
selection-start-column=
"15"
selection-end-line=
"40"
selection-end-column=
"15"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/signal_handlers.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"228"
>
<caret
line=
"12"
column=
"21"
selection-start-line=
"12"
selection-start-column=
"21"
selection-end-line=
"12"
selection-end-column=
"21"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/commands.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"969"
>
<caret
line=
"51"
column=
"15"
lean-forward=
"true"
selection-start-line=
"51"
selection-start-column=
"15"
selection-end-line=
"51"
selection-end-column=
"15"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/include/built_in.h"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
<entry
file=
"file://$PROJECT_DIR$/src/built_in.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"779"
>
<caret
line=
"41"
column=
"20"
selection-start-line=
"41"
selection-start-column=
"20"
selection-end-line=
"41"
selection-end-column=
"20"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
266
"
>
<caret
line=
"
14
"
selection-start-line=
"
14
"
selection-end-line=
"
14
"
/>
<state
relative-caret-position=
"
152
"
>
<caret
line=
"
8
"
selection-start-line=
"
8
"
selection-end-line=
"
8
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/utils.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"513"
>
<caret
line=
"27"
column=
"1"
lean-forward=
"true"
selection-start-line=
"27"
selection-start-column=
"1"
selection-end-line=
"27"
selection-end-column=
"1"
/>
<state
relative-caret-position=
"760"
>
<caret
line=
"40"
column=
"15"
selection-start-line=
"40"
selection-start-column=
"15"
selection-end-line=
"40"
selection-end-column=
"15"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/signal_handlers.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"228"
>
<caret
line=
"12"
column=
"21"
selection-start-line=
"12"
selection-start-column=
"21"
selection-end-line=
"12"
selection-end-column=
"21"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/commands.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1311
"
>
<caret
line=
"
69
"
column=
"6
3"
lean-forward=
"true
"
selection-start-line=
"
69
"
selection-start-column=
"6
3
"
selection-end-line=
"
69
"
selection-end-column=
"6
3
"
/>
<state
relative-caret-position=
"
988
"
>
<caret
line=
"
52
"
column=
"6"
selection-start-line=
"
52
"
selection-start-column=
"6"
selection-end-line=
"
52
"
selection-end-column=
"6"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/include/built_in.h"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
<entry
file=
"file://$PROJECT_DIR$/src/built_in.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"779"
>
<caret
line=
"41"
column=
"20"
selection-start-line=
"41"
selection-start-column=
"20"
selection-end-line=
"41"
selection-end-column=
"20"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"152"
>
<caret
line=
"8"
selection-start-line=
"8"
selection-end-line=
"8"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/utils.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"760"
>
<caret
line=
"40"
column=
"15"
selection-start-line=
"40"
selection-start-column=
"15"
selection-end-line=
"40"
selection-end-column=
"15"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/signal_handlers.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"228"
>
<caret
line=
"12"
column=
"21"
selection-start-line=
"12"
selection-start-column=
"21"
selection-end-line=
"12"
selection-end-column=
"21"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/commands.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"988"
>
<caret
line=
"52"
column=
"6"
selection-start-line=
"52"
selection-start-column=
"6"
selection-end-line=
"52"
selection-end-column=
"6"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/built_in.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"779"
>
<caret
line=
"41"
column=
"20"
selection-start-line=
"41"
selection-start-column=
"20"
selection-end-line=
"41"
selection-end-column=
"20"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"152"
>
<caret
line=
"8"
selection-start-line=
"8"
selection-end-line=
"8"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/utils.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"760"
>
<caret
line=
"40"
column=
"15"
selection-start-line=
"40"
selection-start-column=
"15"
selection-end-line=
"40"
selection-end-column=
"15"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/signal_handlers.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"228"
>
<caret
line=
"12"
column=
"21"
selection-start-line=
"12"
selection-start-column=
"21"
selection-end-line=
"12"
selection-end-column=
"21"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/commands.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"988"
>
<caret
line=
"52"
column=
"6"
selection-start-line=
"52"
selection-start-column=
"6"
selection-end-line=
"52"
selection-end-column=
"6"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/built_in.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-45
9"
>
<state
relative-caret-position=
"
77
9"
>
<caret
line=
"41"
column=
"20"
selection-start-line=
"41"
selection-start-column=
"20"
selection-end-line=
"41"
selection-end-column=
"20"
/>
</state>
</provider>
...
...
@@ -272,6 +366,13 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/utils.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"760"
>
<caret
line=
"40"
column=
"15"
lean-forward=
"true"
selection-start-line=
"40"
selection-start-column=
"15"
selection-end-line=
"40"
selection-end-column=
"15"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/signal_handlers.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"228"
>
...
...
@@ -281,15 +382,71 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/commands.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1294"
>
<caret
line=
"91"
selection-start-line=
"91"
selection-end-line=
"91"
/>
<state
relative-caret-position=
"988"
>
<caret
line=
"52"
column=
"6"
selection-start-line=
"52"
selection-start-column=
"6"
selection-end-line=
"52"
selection-end-column=
"6"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/built_in.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1444"
>
<caret
line=
"76"
column=
"25"
lean-forward=
"true"
selection-start-line=
"76"
selection-start-column=
"25"
selection-end-line=
"76"
selection-end-column=
"25"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"266"
>
<caret
line=
"14"
selection-start-line=
"14"
selection-end-line=
"14"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/utils.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"500"
>
<caret
line=
"57"
column=
"5"
selection-start-line=
"57"
selection-start-column=
"5"
selection-end-line=
"57"
selection-end-column=
"5"
/>
<state
relative-caret-position=
"513"
>
<caret
line=
"27"
column=
"1"
lean-forward=
"true"
selection-start-line=
"27"
selection-start-column=
"1"
selection-end-line=
"27"
selection-end-column=
"1"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/commands.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1311"
>
<caret
line=
"69"
column=
"63"
lean-forward=
"true"
selection-start-line=
"69"
selection-start-column=
"63"
selection-end-line=
"69"
selection-end-column=
"63"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/built_in.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-314"
>
<caret
line=
"41"
column=
"20"
selection-start-line=
"41"
selection-start-column=
"20"
selection-end-line=
"41"
selection-end-column=
"20"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/commands.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-152"
>
<caret
line=
"37"
column=
"1"
lean-forward=
"true"
selection-start-line=
"37"
selection-start-column=
"1"
selection-end-line=
"37"
selection-end-column=
"1"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/utils.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"465"
>
<caret
line=
"46"
column=
"7"
selection-start-line=
"46"
selection-start-column=
"7"
selection-end-line=
"46"
selection-end-column=
"7"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/signal_handlers.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"228"
>
<caret
line=
"12"
column=
"21"
selection-start-line=
"12"
selection-start-column=
"21"
selection-end-line=
"12"
selection-end-column=
"21"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main.c"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"266"
>
<caret
line=
"14"
column=
"14"
selection-start-line=
"14"
selection-start-column=
"14"
selection-end-line=
"14"
selection-end-column=
"14"
/>
</state>
</provider>
</entry>
...
...
This diff is collapsed.
Click to expand it.
201221030.docx
0 → 100644
+
0
−
0
View file @
a4960425
File added
This diff is collapsed.
Click to expand it.
src/commands.c
+
12
−
1
View file @
a4960425
...
...
@@ -28,7 +28,15 @@ static int is_built_in_command(const char* command_name)
/*
* Description: Currently this function only handles single built_in commands. You should modify this structure to launch process and offer pipeline functionality.
*/
int
evaluate_command
(
int
n_commands
,
struct
single_command
(
*
commands
)[
512
])
int
evaluate_command
(
int
n_commands
,
struct
single_command
(
*
commands
)[
512
])
{
if
(
n_commands
==
1
)
{
struct
single_command
*
com
=
(
*
commands
);
one_command
(
n_commands
,
com
);
}
else
if
(
n_commands
>
1
){
printf
(
"pipe"
);
}
}
int
one_command
(
int
n_commands
,
struct
single_command
(
*
commands
)[
512
])
{
if
(
n_commands
>
0
)
{
struct
single_command
*
com
=
(
*
commands
);
...
...
@@ -53,6 +61,7 @@ int evaluate_command(int n_commands, struct single_command (*commands)[512])
}
else
if
(
validate_path
(
com
->
argc
,
com
->
argv
))
{
int
pid
;
pid
=
fork
();
if
(
pid
==
-
1
)
{
...
...
@@ -76,6 +85,8 @@ int evaluate_command(int n_commands, struct single_command (*commands)[512])
return
0
;
}
void
free_commands
(
int
n_commands
,
struct
single_command
(
*
commands
)[
512
])
{
for
(
int
i
=
0
;
i
<
n_commands
;
++
i
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment