Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
12c1aef7
Commit
12c1aef7
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix some funny 'cut' results
parent
eeba5788
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ChangeLog
+2
-0
2 additions, 0 deletions
ChangeLog
tools/define.sh
+6
-2
6 additions, 2 deletions
tools/define.sh
with
8 additions
and
2 deletions
ChangeLog
+
2
−
0
View file @
12c1aef7
...
...
@@ -5686,4 +5686,6 @@
From Carvalho de Assis. (2013-9-30).
* net/net_sendfile: The high performance sendfile logic is
now functional. From Max Holtzberg (2013-9-30).
* tools/define.sh: 'cut' long because as it once did. Script
adapted to observed behavior (2013-9-30).
This diff is collapsed.
Click to expand it.
tools/define.sh
+
6
−
2
View file @
12c1aef7
...
...
@@ -170,9 +170,13 @@ unset response
for
vardef
in
$varlist
;
do
varname
=
`
echo
$vardef
|
cut
-d
'='
-f1
`
varvalue
=
`
echo
$vardef
|
cut
-d
'='
-f2
`
if
[
"X
$varname
"
!=
"X
$vardef
"
]
;
then
varvalue
=
`
echo
$vardef
|
cut
-d
'='
-f2
`
else
unset
varvalue
fi
# Handle the output depending on if there is a value for the variable or not
# Handle the output depending on if there is a value for the variable or not
if
[
-z
"
$varvalue
"
]
;
then
...
...
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