Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

strange command execution via variable

Featured Replies

Dear Armbian community

I am currently porting some project from Debian/amd64 to Armbian (Debian GNU/Linux7 Wheezy) with shell and python and its impressive !

I though noticed strange behaviour on some command execution via variable and will here focus on a simple date sync example :

1. nc command :

from shell or from script : nc time.nist.gov 13 revert a typical 46 char long ASCII answer.

via a variable, a=$(nc time.nist.gov 13) ; $a delivers the same time server answer followed by the list of dir & files in the current dir, space separated.

   explicit error : $a | hexdump -v -C

2. date command

from the shell or from script : date +%T -s "12:34:56" , properly sets the system time.

via a variable, a=$(date +%T -s "12:34:56") ; $a generates an invalid date "12:34:56"  error

   explicit error : $a 2>&1 | hexdump -v -C

 

Does anyone confirm this behaviour ? Is it documented ? patched ?

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.