OSDN Git Service

[IMPROVED] Adapt to the behavior change grep(1) as of 12.0-RELEASE that the case...
[portsreinstall/current.git] / lib / libmisc.sh
index bf83892..44500d2 100644 (file)
@@ -56,7 +56,7 @@ misc_get_all_vardefs ()
 # ============= Initialize shell variable definitions =============
 misc_init_vardefs ()
 {
-       eval `misc_get_all_vardefs | grep -E '^[a-z_][a-zA-Z0-9_]+=' | sed 's/=.*//;s/^/unset /'`
+       eval `misc_get_all_vardefs | env LANG=C grep -E '^[a-z_][a-zA-Z0-9_]+=' | sed 's/=.*//;s/^/unset /'`
 }
 
 # ============= Get the size of the current console =============