Changes between Version 3 and Version 4 of Ticket #3692, comment 5
- Timestamp:
- 09/28/16 09:50:35 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3692, comment 5
v3 v4 165 165 output for dash / BusyBox ash ("/a/") during first run, and if it doesn't match - 166 166 test again to compare to BusyBox pre 1.20 broken printf output ("7a7") */ 167 command1 = g_strdup_printf ("str=$( (" 168 "printf \"PS1='\"'$(printf \"%%%%b\" \"\\\\0057a\\\\0057\\\\n\" >&3)'\"'\\n" 169 "exit 0\\n\" | %s -i 1>/dev/null) 3>&1); " 167 command1 = g_strdup_printf ( 168 "str=$( " 169 "(" 170 "printf \"PS1='\"'" 171 "$(" 172 "printf \"%%%%b\" \"\\\\0057a\\\\0057\\\\n\" >&3" 173 ")'\"'\\n" 174 "exit 0\\n\" | %s -i 1>/dev/null" 175 ") 3>&1" 176 ");" 170 177 "if [ \"$str\" = \"/a/\" ]; then " 171 "exit 0; 178 "exit 0;" 172 179 "else " 173 "exit 1; 180 "exit 1;" 174 181 "fi", mc_shell->path); 175 command2 = g_strdup_printf ("str=$( (" 176 "printf \"PS1='\"'$(printf \"%%%%b\" \"\\\\0057a\\\\0057\\\\n\" >&3)'\"'\\n" 177 "exit 0\\n\" | %s -i 1>/dev/null) 3>&1); " 182 command2 = g_strdup_printf ( 183 "str=$( " 184 "(" 185 "printf \"PS1='\"'" 186 "$(" 187 "printf \"%%%%b\" \"\\\\0057a\\\\0057\\\\n\" >&3" 188 ")'\"'\\n" 189 "exit 0\\n\" | %s -i 1>/dev/null" 190 ") 3>&1" 191 ");" 178 192 "if [ \"$str\" = \"7a7\" ]; then " 179 "exit 0; 193 "exit 0;" 180 194 "else " 181 "exit 1; 195 "exit 1;" 182 196 "fi", mc_shell->path); 183 197