mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 11:42:21 +00:00
bltins/whence.c: Revert accidentally included test (re: 3613da42
)
Some temp debug code that tests a possible fix for #26 accidentally snuck in to a completely unrelated commit. Sorry about that.
This commit is contained in:
parent
e9c7ac70a7
commit
36f55f1f85
1 changed files with 1 additions and 7 deletions
|
@ -190,10 +190,7 @@ static int whence(Shell_t *shp,char **argv, register int flags)
|
||||||
if(flags&V_FLAG)
|
if(flags&V_FLAG)
|
||||||
{
|
{
|
||||||
if(nv_isnull(np))
|
if(nv_isnull(np))
|
||||||
{
|
|
||||||
errormsg(SH_DICT,ERROR_warn(0),"[DEBUG] is_ufunction ONE: %s", name);
|
|
||||||
cp = sh_translate(is_ufunction);
|
cp = sh_translate(is_ufunction);
|
||||||
}
|
|
||||||
else if(is_abuiltin(np))
|
else if(is_abuiltin(np))
|
||||||
{
|
{
|
||||||
if(nv_isattr(np,BLT_SPC))
|
if(nv_isattr(np,BLT_SPC))
|
||||||
|
@ -253,11 +250,8 @@ errormsg(SH_DICT,ERROR_warn(0),"[DEBUG] is_ufunction ONE: %s", name);
|
||||||
const char *command_path = np->nvalue.pathcomp->name;
|
const char *command_path = np->nvalue.pathcomp->name;
|
||||||
sfprintf(sfstdout,"%s %s %s/%s\n",name,sh_translate(is_talias),command_path,cp);
|
sfprintf(sfstdout,"%s %s %s/%s\n",name,sh_translate(is_talias),command_path,cp);
|
||||||
}
|
}
|
||||||
else if(np && nv_isnull(np))
|
else if(!np || nv_isnull(np))
|
||||||
{
|
|
||||||
errormsg(SH_DICT,ERROR_warn(0),"[DEBUG] is_ufunction TWO: %s", name);
|
|
||||||
sfprintf(sfstdout,"%s%s\n",name,sh_translate(is_ufunction));
|
sfprintf(sfstdout,"%s%s\n",name,sh_translate(is_ufunction));
|
||||||
}
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
sfputr(sfstdout,sh_fmtq(name),' ');
|
sfputr(sfstdout,sh_fmtq(name),' ');
|
||||||
|
|
Loading…
Reference in a new issue