140
140
sprintf(buffer,"%d",(int)getpid());
142
142
} else if(!strcmp(name,"#")) {
143
143
sprintf(buffer,"%d",head->argc-1);
145
145
} else if(!strcmp(name,"@")) {
146
146
return variable_print_argv(withquotes);
147
147
} else if(!strcmp(name,"*")) {
148
148
return variable_print_argv(0);
149
149
} else if( sscanf(name,"%d",&arg)==1 ) {
155
155
} else if( isvalid(name) ) {
156
156
char *result = getenv(name);
158
158
result = buffer_load(name);
159
159
if(result) string_chomp(result);