Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove -c flag in typeset builtin #1121

Merged
merged 1 commit into from
Jan 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/cmd/ksh93/bltins/typeset.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ struct tdata {
char *help;
char aflag;
bool pflag;
bool cflag;
int argnum;
int scanmask;
Dt_t *scanroot;
Expand Down Expand Up @@ -292,10 +291,6 @@ int b_typeset(int argc, char *argv[], Shbltin_t *context) {
flag |= NV_BINARY;
break;
}
case 'c': {
tdata.cflag = true;
}
// FALLTHRU
case 'm': {
flag |= NV_MOVE;
break;
Expand Down Expand Up @@ -732,7 +727,6 @@ static_fn int setall(char **argv, int flag, Dt_t *troot, struct tdata *tp) {
}
}
if (flag & NV_MOVE) {
if (tp->cflag) flag &= ~NV_MOVE;
nv_rename(np, flag);
nv_close(np);
continue;
Expand Down
3 changes: 0 additions & 3 deletions src/cmd/ksh93/data/builtins.c
Original file line number Diff line number Diff line change
Expand Up @@ -1572,9 +1572,6 @@ const char sh_opttypeset[] =
"[b?Each \aname\a may contain binary data. Its value is the mime "
"base64 encoding of the data. It can be used with \b-Z\b, "
"to specify fixed sized fields.]"
"[c?Copy. The value is the name of a variable whose value will be "
"copied to \aname\a. The orignal variable will be unchanged. Cannot "
"be used with any other options.]"
"[f?Each of the options and \aname\as refers to a function.]"
"[i]#?[base:=10?An integer. \abase\a represents the arithmetic base "
"from 2 to 64.]"
Expand Down