Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143109923
D53499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
593 B
Referenced Files
None
Subscribers
None
D53499.diff
View Options
diff --git a/bin/sh/eval.c b/bin/sh/eval.c
--- a/bin/sh/eval.c
+++ b/bin/sh/eval.c
@@ -794,6 +794,12 @@
if (idx == EXPORTCMD || idx == TRAPCMD || idx == ULIMITCMD ||
idx == UMASKCMD)
return (argc <= 1 || (argc == 2 && argv[1][0] == '-'));
+ if (idx == HASHCMD)
+ return (argc <= 1 ||
+ (argc == 2 && argv[1][0] == '-' && argv[1][1] == 'v'));
+ if (idx == ALIASCMD)
+ return (argc <= 1 ||
+ (argc == 2 && (strchr(argv[1], '=') == NULL)));
if (idx == SETCMD)
return (argc <= 1 || (argc == 2 && (argv[1][0] == '-' ||
argv[1][0] == '+') && argv[1][1] == 'o' &&
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 27, 2:35 AM (15 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24608734
Default Alt Text
D53499.diff (593 B)
Attached To
Mode
D53499: sh: $(alias) is safe to not fork.
Attached
Detach File
Event Timeline
Log In to Comment